| Blockland Forums > Modification Help |
| Projectile questions |
| (1/4) > >> |
| Demian:
Is it possible to make a projectile spawn an explosion datablock when it bounces off anything? Is it possible with a script of some sort to make a projectile fake kill, in a minigame, any brick it hits? Can projectiles have some sort of armature or something that controls where the projectile's emitter comes from? I also need a script for Grapple Rope. It needs to keep the projectile alive until the fire button is released. You hold down the fire button and it fires a projectile and that projectile disappears when the fire button is released. Possible? |
| Venus:
--- Quote from: Demian on December 28, 2010, 08:39:26 AM ---Is it possible with a script of some sort to make a projectile fake kill, in a minigame, any brick it hits? --- End quote --- i suspect it's possible, but it's alot easier if you download BrickKill event or use fake kill brick with OnProjectileHit which will cause the brick(s) to fake kill on hit by the Projectile... =D |
| Demian:
I'm talking about scripting here. Not eventing. |
| Venus:
--- Quote from: Demian on December 28, 2010, 09:05:47 AM ---I'm talking about scripting here. Not eventing. --- End quote --- i guessed that... but i was saying it would be alot easier... look into event scripts and take lines from there, place in your own code... |
| Bauklotz:
--- Code: ---function projectileName::onCollision(%this,%obj,%col) { if(%col.getClassName() $= fxDTSBrick) %col.fakeKillBrick(%obj.getVelocity(), duration in seconds); } --- End code --- |
| Navigation |
| Message Index |
| Next page |