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 → Attachment broken by water
Attachment broken by water
2001-10-11, 10:47 AM #1
I have an actor and a projectile attached with the plain AttachThingToThing(). But when the actor enters/exits the water, the projectile detaches itself.

What's the easiest way to fix that?
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-10-11, 12:46 PM #2
Try using AttachThingToThingEx() instead. I would suggest using 0x8 for the flag, although you might want to try playing around with the other possible values.
2001-10-11, 6:35 PM #3
DARN IT, you got to it again. Yes use AttachThingToThingEx() with the 0x8 flag. ARGHGH
2001-10-12, 7:45 AM #4
Hey, there's more to it than that. [http://forums.massassi.net/html/frown.gif]

Using AttachThingToThingEx() and the 0x8 flag will keep the attachment when entering/exiting the water, but that won't allow the projectile to explode when it hits a wall. And the 0x4 flag has the same problem as AttachThingToThing().

Another method that might work, would be to reattach the actor and the projectile when the splash message is called(The userdata of the proj is the actor it's attached to). But the projectile's splash message is not called. I think that's because it's attached.

------------------
Fiction must be more realistic than truth or no one will believe it.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-10-18, 11:45 AM #5
up again...

------------------
Never argue with an idiot. They drag you down to their level and beat you with experience.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!