Projectiles
by Vincent D · in Torque Game Engine · 07/19/2005 (6:48 am) · 6 replies
Hello,
ive got a destroyable gate, but i want only takes damage from like big projectiles (explosions) how can i do this?
thanks, Vincent
ive got a destroyable gate, but i want only takes damage from like big projectiles (explosions) how can i do this?
thanks, Vincent
#2
07/19/2005 (6:59 am)
Of course i would like that :)
#3
07/19/2005 (7:03 am)
Uh... I will just email it to you. That way I can send you the dummy object as well. No sense creating one yourself, when you can just use mine.
#4
07/19/2005 (7:04 am)
Ok thanks
#5
I would love have a copy also. I have tried to the same thing and no luck. Im new to torque.
Thanks.
sventhors
my email sventhors@yahoo.com
07/19/2005 (7:16 am)
Cheers. Chris Labombad,I would love have a copy also. I have tried to the same thing and no luck. Im new to torque.
Thanks.
sventhors
my email sventhors@yahoo.com
#6
07/19/2005 (7:18 am)
Sure. No problem.
Torque Owner Chris Labombard
Premium Preferred
I then wrote code in the projectile::oncollision method of the projectile type that I wanted to destroy the rocks that checked to see if it had hit a TSStatic, and checked to see if the name was Rock_trig. If it was both of those then I delete the whole group. I placed the rocks and the dummy object in a group.
I also placed the code to spawn the group in a seperate script file and function. I cal lthe function at gamestart.
I did this because some freaky things can happen with the .mis file if you delete them by blowing them up and then save hte mission.
I will post the code block tonight when I get home if you'd like.