Page 1 of 1

Object that dies when walked on

Posted: Wed Aug 10, 2011 9:05 pm
by Darkstef
Hi all, I want to create an object that dies when walked on, but I have no idea how can I do that and I dont know any mod where I can found that...
It's for a trap, and seriously I dont have any idea :(

Posted: Thu Aug 11, 2011 6:47 am
by freddy
deathbubbles

Re: Object that dies when walked on

Posted: Thu Aug 11, 2011 11:22 am
by Darkstef
yea but the deathbubble must to be activated when you walk on the object, and all death bubble are always activated, so I don't know what can I do...

Re: Object that dies when walked on

Posted: Thu Aug 11, 2011 7:09 pm
by Apache Thunder
Will the object be stationary or mobile? If it has no mobile physics, you can code the damage system so that the material for soldiers does damage to the material the object PCO uses. (you can set up the materials on the mesh so that only the parts that can be walked on will have the material that will be affected by soldiers) It only seems to work on stationary PCOs though. I coded something like this with the bomb car in my Mario kart mod. The stationary bomb car explodes the moment a soldier or vehicle touches it no matter what speed the attacking soldier/vehicle is going and is the result of the damage system. ;) So death bubbles may not be needed.

Re: Object that dies when walked on

Posted: Thu Aug 11, 2011 7:42 pm
by Darkstef
Yes its for a stationary object, I will try that thx :D

Posted: Fri Aug 12, 2011 4:36 pm
by freddy
i meant bubbles added to the soldiers so when they got near the trigger the trap would be activated.

but Apaches idea sounds better tho as bubbles can act weird sometimes

Re: Object that dies when walked on

Posted: Sat Aug 13, 2011 7:12 pm
by Apache Thunder
Yeah. I'm pretty sure it works in multiplayer too. I had once played the Mario Kart mod in multiplayer once and had no issues with my bomb car. So it should work out just fine in this instance as well. :D