Blockland Forums > Modification Help
Explosion damage over time
Space Guy:
When the explosion hits the floor it could create a few "items" using blank.dts and a fire emitter, and when picked up starts to do the damage.
Alternately you could swap the fireArrowProjectile::onCollision for fireArrowProjectile::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt), for area damage as soon as it hits.
Finally, the collision could set up a scheduled radius check, like the door creator except temporary, and then do damage every 100 - 200ms.
Muffinmix:
--- Quote from: Space Guy on July 15, 2007, 01:45:19 AM ---When the explosion hits the floor it could create a few "items" using blank.dts and a fire emitter, and when picked up starts to do the damage.
Alternately you could swap the fireArrowProjectile::onCollision for fireArrowProjectile::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt), for area damage as soon as it hits.
Finally, the collision could set up a scheduled radius check, like the door creator except temporary, and then do damage every 100 - 200ms.
--- End quote ---
This would be exactly what I need, but I don't know much about programming and computer basics so I'm not sure if I could script the function code.
Could you help me out?
Muffinmix:
--- Quote from: Muffinmix on July 15, 2007, 11:55:41 AM ---
--- Quote from: Space Guy on July 15, 2007, 01:45:19 AM ---When the explosion hits the floor it could create a few "items" using blank.dts and a fire emitter, and when picked up starts to do the damage.
Alternately you could swap the fireArrowProjectile::onCollision for fireArrowProjectile::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt), for area damage as soon as it hits.
Finally, the collision could set up a scheduled radius check, like the door creator except temporary, and then do damage every 100 - 200ms.
--- End quote ---
This would be exactly what I need, but I don't know much about programming and computer basics so I'm not sure if I could script the function code.
Could you help me out?
--- End quote ---
Actually, I just got it working, thanks for all the help :D
On a side notw, would there be a way of doing the same thing for Impulse Radius?
Muffinmix:
Actually, thanks again for all the help, I'll make another thread for my other request.