Frictional Games Forum (read-only)

Full Version: Teleporting and dying but actually NOT dying?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello! i have an script area.. where a cannon shoot you and this happens :

SetEntityActive("CannonBall", true);
AddPropForce("CannonBall", -150000, 0, 0, "world");
PlaySoundAtEntity("", "explosion_rock_large", "CannonBall", 0, false);
ChangeMap("Entrance.map", "Entrance" , "", "");
SetPlayerHealth(0);

but then you die and go to that map and the text will come ? how can i remove it ?! is there a script that removes it ?! or option 2
setplayerhealth to 1 and doing a script of Crouching.. but idk how Sad who can help me!!!
It's better changing map after the death text. I don't think you can remove the death text unless you make a custom death instead of setplayerhealth. Which is then a timer.
do you know how to crouch ?! automaticly... (after activating that function)
(08-22-2014, 07:29 PM)Amnesiaplayer Wrote: [ -> ]do you know how to crouch ?! automaticly... (after activating that function)

Code:
void SetPlayerCrouching(bool abCrouch);

Forces the player to crouch.
Thanks!!! this is good!
a cannonball is touching (hurting) you , the screen goes black , you fall down. and die.. BUT i want to change the death hint ONLY after that shot..... I know the script for death hint.. (but not where to place it)
and not howto do it for 1 level...
You need to start looking at this page here buddy: https://wiki.frictionalgames.com/doku.ph..._functions

I suggest you do ctrl-f / cmd-f to find your DeathHint script.
"I suggest you do ctrl-f / cmd-f to find your DeathHint script."
I don't undersdtand that (where ?!!)
and i know that i have to look to there but i asked some things with "Possibility" script things i know... about death hint....
Open the link, press ctrl-f (to open the browser's find feature), then type in DeathHint and the first result should be the script you want to use.