Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Trigger an action when player dies? or make a player pass the level when dies?

Author
Message
TobiasRipper
15
Years of Service
User Offline
Joined: 17th Mar 2011
Location:
Posted: 18th Mar 2011 23:50
Can't seem to find this question answered anywhere so here.

I wanna make a cut scene in my game where player is unavoidably supposed* to be killed by one enemy. After he is killed he would be re spawned in a different room (Not the original spawn point)

So my questions are:
1) Is there a way to re-spawn the player at a different spawn point once killed?

2) Also Is there a way to make the player to pass a level once he dies?

Thank you very much for all your support!

No I'm not your sandwich
Conjured Entertainment
AGK Developer
20
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 20th Mar 2011 01:05 Edited at: 20th Mar 2011 01:25
1) Yes.
You can use the plrmoveto=x action when a plralive=0 condition is met. (x being the name of the entity to move the player to)
I usually go to a separate state on the plralive=0 then check for plralive=1 to do the move.
That way you do not interupt the built in death spawn, which might spawn you at the start position after your move.

Also, you want to make sure that the script running this is assigned to an entity that has Always Active = Yes
That way, the player's distance fom the entity will not negatively effect the script's condition.

2) Yes.
Use the same method and move the player to the winzone.

Try somethng like this
  and see what happens.

That should move to the player to whatever you name wwcd (could be a winzone or any entity) after they die.
That example loops, but if you want it to only happen once then change the last line to goto state=3 instead of state=1
Then it will only work once.

TobiasRipper
15
Years of Service
User Offline
Joined: 17th Mar 2011
Location:
Posted: 20th Mar 2011 07:14
Ah that's great. Thanks for the help. Ill try to experimnent with these.

No I'm not your sandwich
sberk
16
Years of Service
User Offline
Joined: 6th Jun 2010
Location: next to a cup of coffee
Posted: 22nd Mar 2011 12:54
Hi, although I didn't ask the question, I had the same. Therfore just thank you,
sberK

Login to post a reply

Server time is: 2026-06-27 17:11:37
Your offset time is: 2026-06-27 17:11:37