Make an AI person

can I please have help coding a person so you can talk to them like in a police game and get them to come out there car and check for items and use a police car. i just started my script.
here is my code right now.

var Ai = pc.createScript('ai');

// initialize code called once per entity

Ai.prototype.initialize = function() {


// update code called every frame

Ai.prototype.update = function(dt) {


// swap method called for script hot-reloading

// inherit your script state here

// Ai.prototype.swap = function(old) { };

// to learn more about script anatomy, please read:


Hi @samisgoodgamer and welcome!

Would be worth posting it in the collaboration section, and explain your project a little bit for anyone to help you out.