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 and Flags
FirstThinginView and Flags
2001-04-08, 2:51 PM #1
I made a cog that uses FirstThingInView(); and StopThing(); to search for a thing and stop it. The only problem is I don't want something to be able to be targeted after it has been stopped. Can I somehow change the thing's flags so that FirstThingInView does not see it? Or is there another alternative?

------------------
Together we stand.
Divided we fall.
2001-04-08, 3:23 PM #2
Is this for what I think it is? [http://forums.massassi.net/html/wink.gif]

You can use NextThingInView(); after using FirstThingInView(); and I'm pretty sure it won't identify the thing stopped the first time.

-Jipe
2001-04-08, 7:47 PM #3
If that doesn't work try this...

SetThingType(target, 9);

Type values dont seem to be sync'd over JK network so even though you would see them
as type 9 and would be unable to target them using 0x400, the other person would still see themselves as type 10 and be unaffected.
I have no idea what effect this would have on AI actors though.
- Wisdom is 99% experience, 1% knowledge. -
2001-04-09, 4:36 AM #4
If(found & GetThingUserData(victim) == 0) SetThingUserData(victim, 1);




------------------
http://millennium.massassi.net/ - Millennium
2001-04-09, 10:44 AM #5
*slaps forehead*
SetThingType();! Of course!
Thanks [http://forums.massassi.net/html/biggrin.gif]

------------------
Together we stand.
Divided we fall.
2001-04-09, 12:58 PM #6
SetThingType will leave side effect on other cogs, if the cog checks for thing types.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!