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 / Win Level via Script

Author
Message
JRH
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 29th May 2009 12:05
Hi, I've tried a couple of things to get this done but just can't manage it; How can I make the player Win a level via a script. I've also tried using the IsObjective field in the entities properties, but can't get functionality.

I'm using Ply’s Mod V1.08 (with integrated Airmod V0.6, and FPSCreator V1.09. Can anyone give some advice as to how I can achieve my goal?

Thanks,
JRH

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th May 2009 22:33
Place a small pickup entity somewhere in your level (out of sight would be sufficient) and make it AlwaysActive. Now, giv that entity a script that will force the player to pick it up when it is activated. Also, make sure that the entity has an "IsObjective" value, and that it is the ONLY entity in the level that has an objective value.

Now, in your script that should win the level, simply activate that entity to make the player pick it up, when it gets picked up then the level should end.


The one and only,


Login to post a reply

Server time is: 2024-11-25 01:34:41
Your offset time is: 2024-11-25 01:34:41