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 → Attach flags...
Attach flags...
2004-04-07, 9:30 PM #1
Hi!
I have a COG where I test to see if an object has landed. By doing so, I ask If(GetAttachFlags(object) & 0x1);. Now, this tests if the object is attached to a surface of a sector. How do I test if the object is attached to a thing?

/Edward
Edward's Cognative Hazards
2004-04-08, 1:50 AM #2
Not sure about this one. Datamaster has some more attach flags in there, but it's not totally clear when they are used.
You might write a pulse cog that prints the attachflags of certain objects (player, ai, whatever) to see what they should be like.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-04-08, 3:54 AM #3
OK, I used the print in a pulse, and when it landed on a thing, the flag was 2. No wonder I was confused, because:
Quote:
<font face="Verdana, Arial" size="2">DataMaster
0x2 | 2 | 0x4 | Thing will be given the lookvector of the object it's attached to.
</font>

So, to be on the safe side, I put if(!(GetAttachFlags(object)==0))

/Edward
Edward's Cognative Hazards
2004-04-08, 7:56 AM #4
Yeah, that sounds reasonable.
I really never ever understood this whole mess about the different attach types, and why some don't work in certain cases, etc.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!