Doing damage to Static Shape
by JD Scogin · in Torque 3D Beginner · 07/01/2013 (3:36 pm) · 25 replies
I am trying to set up a shape so I can do damage to it. I have tried creating datablock, making it static and dynamic, but when I do, following a tutorial, I there is no collisions set up, so the bullets pass right thru, on both. I know this is possible, because the turret takes damage and you can't walk thru it. I am asking because I have spent about two days trying to figure this out. Here is what I need. I have a tunnel set up. I want to put a static zombie (shape) in the way. I don't what the player to be able to walk thru it. I also want the player to be able to shoot it was a gun and kill it. (or make it disappear). Has anyone done this? Thanks for any help.
Jd
Jd
About the author
#22
07/05/2013 (6:38 pm)
LOL, a hack really is just something that nobody has accepted as standard practice. I am not a fan of the term 'hack'. I have found that in a number of instances, the term 'hack' is the only way a function performs correctly. Since T3D C++, and Torque Script are only used in Torque engines, it's not a hack always. It just seems like one.
#23
07/05/2013 (8:09 pm)
I agree. If it works for me and does the job, it is not a hack, it is code, since it will only be used in my own work.
#24
07/05/2013 (10:19 pm)
While we're on the topic - Doom was only possible because of a "hack." They didn't know that you "couldn't do that," so they did it - can't remember the exact optimization, have to look it up, but it had to do with rendering....
#25
07/08/2013 (10:14 am)
So what I have now is a large tunnel, with static shapes in the way (zombie, spider, etc. also turrets to destory). The player shoot the zombie then it gets a change to shoot back, doing damage to the player. There are 10 rotating cubes that the player must pickup. (disappear) I put dynamic variables (can_damage, maxDamage) if can_damage is set to yes, it can be destroyed, if maxDamage is set to a number, it can do 1 to number damage with each hit. When player get all 10 cubes, he goes to a quest giver. There is a trigger that checks to see if player is finished and a transporter appears. Player steps on transporter and game is finished. (closes) Now I need to figure out how to compile and then port to web and my first adventure will be complete. There is a little performance hit but I can live with it.
Ahsan Muzaheed
Default Studio Name
but it is better to not use hack.
" I just hope someone adds that to the game."
go ahead and add some nice particle(like circular fair around obj) around the object before deleting it.
then post it as a resource.
that will be useable for some startegy/top-down game.