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 Scripts / Game over screen

Author
Message
Andrew121
17
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 10th Sep 2008 04:22
Ok i need help on one script. I have an entity, and when the entity gets destroyed its game over. I found out that there is no command to go to the game over screen so i just made it a HUD. But the Game Over screen stays there and never leaves.


This is what i use. Apperantly the timer does not work.
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th Sep 2008 04:50 Edited at: 10th Sep 2008 04:54
:state=0:destroy

This should destroy the entity it's attached to as soon as the game starts. Anything after that line will not happen because the entity no longer exists.

Best.

Andrew121
17
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 10th Sep 2008 05:00
mmh well the HUD does show up O.o
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 10th Sep 2008 05:52
The HUD shows up because even though the entity technically destroyed itself in state 0, the HUD is still created and displayed before the script is finished executing the first time.

I'm willing to bet your character died and the HUD displayed as per your script but since he died and the level ended, you no longer have control over whether or not the HUD is to be taken down or not.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Andrew121
17
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 10th Sep 2008 23:36
I tried destroying the entity at the end but still didnt work.

Andrew121
17
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 10th Sep 2008 23:40
I figured it out i did an error in my script. You guys actually helped me thanks

Login to post a reply

Server time is: 2025-05-23 03:47:11
Your offset time is: 2025-05-23 03:47:11