Frictional Games Forum (read-only)

Full Version: Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys!

I need a little help on a script that sounds simple but I can't figure it out.

I have a obstacle in my map, to which the player can die several times.
So I fall down in a room, and after 10 seconds the player dies, and teleports him to PlayerStartArea_3.

I have checkpoint that after the player dies, it enables the script area again, making the player die every time he falls down in the room. On the bottom of the room there is the script area, and when you collide with it, it would start the 10second timer again and kill the player.
But it doesn't start the effect again after death.

So I wan't the player to die every time he falls in the room.

Sorry for my bad English.
ThanksBlush
(05-16-2013, 12:41 PM)Rakez68 Wrote: [ -> ]Hey guys!

I need a little help on a script that sounds simple but I can't figure it out.

I have a obstacle in my map, to which the player can die several times.
So I fall down in a room, and after 10 seconds the player dies, and teleports him to PlayerStartArea_3.

I have checkpoint that after the player dies, it enables the script area again, making the player die every time he falls down in the room. On the bottom of the room there is the script area, and when you collide with it, it would start the 10second timer again and kill the player.
But it doesn't start the effect again after death.

So I wan't the player to die every time he falls in the room.

Sorry for my bad English.
ThanksBlush

Change the Boolean to false

AddEntityCollideCallback("", "", "", false, 1);
(05-16-2013, 12:48 PM)Grumpyrog Wrote: [ -> ]Change the Boolean to false

AddEntityCollideCallback("", "", "", false, 1);

The one in which has to do with the player colliding with the script at the bottom of the hole which enables the timer Smile
Mother of god, I feel so dumb Big Grin Thanks
Don't feel dumb Smile We all just want to help. If you have questions, just go ahead and ask!