Page 1 of 1

Dilemma with respawn player after bomb explosion

PostPosted: Sun Apr 29, 2007 5:54 pm
by DocRabbit
Hope you guys can give me a direction to go here. Let me give you the scenario.

I have a game I am working on with lumberjack who carries bombs to kill the tree shadow monsters. The bomb itself is comprised of 2 actors, the sparking bomb and the explosion. The bomb is only fatal during the explosion time, which dies out after about 2000 ms. My player, when he dies from anything, displays a pool of blood/bones for about 2999 ms and then respawns at 3000ms near the sawmill. Both bones and respawn when killed by the tree shadow monsters are tied to a timer and all works fine. I am trying to figure out a way that when the bomb kills the player to get the same effect since the bomb explosion dies before the players death scene finishes.

I hope this gives an explanation of what I am trying to do, just wondering what I should tie the timers to since the explosion is destroyed before the death scene.

PostPosted: Sun Apr 29, 2007 9:29 pm
by Sgt. Sparky
I always use scripted activations events.
for your timer events you should set up a variable called action,
that way you can tell who kills who,
if you kill the enemy,
Code: Select all
action = 0;

if you kill the player,
Code: Select all
action = 1;

and use the if statements to determine what you need to do.
this can let you create a different timer or somthing like that with the same event. :D
if you still need help,
let me know. :)