Game Development Community

PlayerData: Debris: Multiple objects: onDestroyed

by Rex · in General Discussion · 09/21/2007 (4:18 pm) · 1 replies

I am curious how to script the playerData to act as a shapeBase object and explode with the onDestroyed callback? I have gotten vehicles to disassemble into multiple parts, by setting up the Art and using stock default Code. How can this be extended to the player object as well, isn't it a shapeBase object like a vehicle?

Thanks.

Any valid links are appreciated, TDN, wiki, or otherwise.

Rex

...please, a little more information than, "I've seen that somewhere's..." lol. Let's bring the 'Community Spirit' alive, eh?

About the author

Rex does all his 3D graphics through BrokeAssGames and is currently working on DSQTweaker, Ecstasy Motion, and other interesting projects yet to be revealed. Just ask him about anything DTS/DSQ related, he's happy to help.


#1
10/12/2007 (12:15 am)
The vehicle and player classes are completly different. Player uses player.cc and the vehicles, depending on which one you use, flyingvehicle.cc, wheeledVehicle.cc etc.
The debris itself is seperated from the implementation of the player and vehicle class, so the debris itself should work the same way, BUT the player class does not contain any debris set up so that might be the reason that it doesn't work. If you want something like that, you need to modify the player class and add the debris.