Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Making a craft that can be destroyed by collisions

Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
12-23-2005 09:48
I've tried scripting a craft I had been working on to be able to be shot down (it's used for team-based training) but every time I try to get it right the persons(s) sitting in it seem to go over the collision limit... are there any tips or pitfalls I should know?

Thank you! :)
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
12-23-2005 10:01
Try llBreakAllLinks() on a physical object. Results are fun!

Good luck!

/esc
_____________________
http://slurl.com/secondlife/Together
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
12-23-2005 12:10
You may want to filter out agent-caused collisions:
CODE

collision_start(integer count)
{
if (llDetectedType(0) & AGENT) return;

(your damage code here)
}
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
12-23-2005 12:16
From: Escort DeFarge
Try llBreakAllLinks() on a physical object. Results are fun!

Good luck!

/esc


Be careful with that, if the vehicle is like most link sets, many of the prims interpenitrate (intersect) one another. Havok tends to either crash the sim or shoot them at high velocities when interpenitrating systems turn physical. To avoid this, unlink the set only after youve set it to phantom.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
12-23-2005 16:18
From: Christopher Omega
Be careful with that, if the vehicle is like most link sets, many of the prims interpenitrate (intersect) one another. Havok tends to either crash the sim or shoot them at high velocities when interpenitrating systems turn physical. To avoid this, unlink the set only after youve set it to phantom.
==Chris


and that's why you would setpos everything away from everything else ;)

Thanks :)