Frictional Games Forum (read-only)
Teleporting and dying but actually NOT dying? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Teleporting and dying but actually NOT dying? (/thread-25936.html)



Teleporting and dying but actually NOT dying? - Amnesiaplayer - 08-22-2014

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!!!


RE: Teleporting and dying but actually NOT dying? - Neelke - 08-22-2014

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.


RE: Teleporting and dying but actually NOT dying? - Amnesiaplayer - 08-22-2014

do you know how to crouch ?! automaticly... (after activating that function)


RE: Teleporting and dying but actually NOT dying? - Neelke - 08-22-2014

(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.



RE: Teleporting and dying but actually NOT dying? - Amnesiaplayer - 08-22-2014

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...


RE: Teleporting and dying but actually NOT dying? - Mudbill - 08-22-2014

You need to start looking at this page here buddy: https://wiki.frictionalgames.com/doku.php?id=hpl2/amnesia/script_functions

I suggest you do ctrl-f / cmd-f to find your DeathHint script.


RE: Teleporting and dying but actually NOT dying? - Amnesiaplayer - 08-22-2014

"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....


RE: Teleporting and dying but actually NOT dying? - Mudbill - 08-22-2014

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.