Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Teleporting and dying but actually NOT dying?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
Teleporting and dying but actually NOT dying?

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!!!
08-22-2014, 04:46 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Teleporting and dying but actually NOT dying?

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.

Derp.
08-22-2014, 05:27 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#3
RE: Teleporting and dying but actually NOT dying?

do you know how to crouch ?! automaticly... (after activating that function)
08-22-2014, 07:29 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#4
RE: Teleporting and dying but actually NOT dying?

(08-22-2014, 07:29 PM)Amnesiaplayer Wrote: do you know how to crouch ?! automaticly... (after activating that function)

void SetPlayerCrouching(bool abCrouch);

Forces the player to crouch.

Derp.
08-22-2014, 08:29 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#5
RE: Teleporting and dying but actually NOT dying?

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...
08-22-2014, 08:49 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Teleporting and dying but actually NOT dying?

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.

08-22-2014, 08:59 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#7
RE: Teleporting and dying but actually NOT dying?

"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....
08-22-2014, 09:06 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#8
RE: Teleporting and dying but actually NOT dying?

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.

08-22-2014, 09:25 PM
Find




Users browsing this thread: 2 Guest(s)