Author Topic: Problem with "getPosition" and "getTransform".  (Read 1701 times)

I am attempting to make a bot script, I got some code to check for people near by the bot, but no matter what I seem to do, I always get "Add-Ons/Script_aiplayer.cs (70): Unable to find object: '' attempting to call function 'getPosition'" and I'm not sure what I am doing wrong, it does the same thing with "getTransform".

%x.getTransform();


Sometimes i had to do %x.player.getTransform(); for it to work.

Either the object doesn't exist or the object doesn't have the function.

Must be .player, %client isn't a physical object...