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 / Move player to random point on map

Author
Message
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 28th Dec 2010 18:12 Edited at: 28th Dec 2010 18:13
Add an element of 'randomness' to your maps with the attached script.

Add it as the main script of a trigger zone.
Add 5 dynamic entities with names of t1,t2,t3,t4 and t5.
Ensure their main script is default.fpi. Make them 'discreet' entities or spawn as invisible.

The player will be instantly moved to the position of either t1,2,3,4 or 5 on entering the trigger zone.

Change the trigger zone sound used to a more "warp" type sound!

If you only want this script to process once for each game, add the destroy comment to each line of code that moves the player.

I'm currently experimenting on using this script to spawn the player at a different position for each new game.

Attachments

Login to view attachments
Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 4th Jan 2011 17:34
Thanks TZap, this can be useful with my creatings

Thanks,
TP
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 4th Jan 2011 22:15
No problem.

I did the test to move the player to a random start point. It worked fine! Details soon.

Login to post a reply

Server time is: 2024-11-24 14:41:19
Your offset time is: 2024-11-24 14:41:19