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 / Trigger Zones & On Screen Text (Timers & Sounds)

Author
Message
Wheatleyy
13
Years of Service
User Offline
Joined: 1st Jan 2011
Location: Look to your right...
Posted: 4th Jun 2013 16:29
Hey!

So I'm really new to scripting and so far i've made a script that is triggered by a trigger zone and displays on screen text and then when the player leaves the zone, the text disappears. However, I want to change it so that it does the following:

- When enter the zone, 'Objective Completed' shows and plays a sound.
- After 3 seconds that text disappears and 'New Objective: Blah' shows for 5 seconds and a sound plays.

I have no idea how i'd do it, completely new

My Script so far:


Cheers,
Wheatleyy

THIS IS A SIGNATURE... TRUST ME... IT IS!
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 4th Jun 2013 18:51
Look at my script and see what I do different(hope it work):
you must place the soundfiles in the triggerzone settings!


Hope this helps you a little bit.
For a beginner it is also good to read the guide or make scripts through trial and error(so I did)!

Corno_1

http://cornofpsc.webs.com/

"The Corno_1 Way of Scripting" by Corno_1
Wheatleyy
13
Years of Service
User Offline
Joined: 1st Jan 2011
Location: Look to your right...
Posted: 4th Jun 2013 19:39
Hey thanks for the help, to avoid spamming the forums, I need help on another script... I want this one to show the decal until the player walks into it and when the player walks into it, the decal disappears and then a sound plays...

Here's what I have so far:


Cheers,
Wheatleyy

THIS IS A SIGNATURE... TRUST ME... IT IS!
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 5th Jun 2013 10:40
Good way.
Tipps:
exept :state=0 or :always all other states must be called like state=0:state=1
Look at the decal.fpi to see how decals work

Some small fixes later


http://cornofpsc.webs.com/

"The Corno_1 Way of Scripting" by Corno_1
Wheatleyy
13
Years of Service
User Offline
Joined: 1st Jan 2011
Location: Look to your right...
Posted: 5th Jun 2013 19:01
Thanks as always corno!

Cheers
Wheatleyy

THIS IS A SIGNATURE... TRUST ME... IT IS!

Login to post a reply

Server time is: 2024-11-23 14:11:41
Your offset time is: 2024-11-23 14:11:41