I have written an AI cog and assigned it to an actor in my level.
I then create a reference to the actor with:
created:
cybernaut = GetSenderRef():
I then try to get him to see a potential target with:
potential = FirstThingInView
(cybernaut,270,8.0,0x404);
But, after building my level I can walk around him with my walkplayer or place other actors near him and he won't see anything.
Do I need to set any flags or properties to get him to see things?
I then create a reference to the actor with:
created:
cybernaut = GetSenderRef():
I then try to get him to see a potential target with:
potential = FirstThingInView
(cybernaut,270,8.0,0x404);
But, after building my level I can walk around him with my walkplayer or place other actors near him and he won't see anything.
Do I need to set any flags or properties to get him to see things?