Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → FirstThingInView - Part 2
FirstThingInView - Part 2
2000-11-03, 8:57 AM #1
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?
2000-11-05, 3:23 AM #2
Well, this may be a stupid question, but did you tell him to do anything to "potential"? I mean, does he just look for the first thing in view and say hello, or does he actually try to attack?

------------------
Those who stare in the eyes of death and laugh will be the first to go.
Those who stare in the eyes of death and laugh will be the first to go.
2000-11-05, 1:03 PM #3
I did try to have him attack a nearby actor or player. Actually, I think I have solved the problem. I loaded MOTS and my code worked fine. Thanks anyway.

↑ Up to the top!