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:
// https://developer.playcanvas.com/en/user-manual/scripting/