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 / Display Image on screen

Author
Message
ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 2nd Oct 2012 15:09
Ive tried to search around but all the scripts I found wasnt the one I was looking for and someone didnt work.


Im trying to find a script which displays a image on a screen when you go in the trigger zone, then destroys itself when you go out again.


- Nic

I work at STL - http://www.stlinteractive.net
D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 2nd Oct 2012 16:19
The stock script switch3.fpi does exactly this (plus it has the switch controls, of course).

Just modifiy this script and you already get what you need

ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 2nd Oct 2012 16:38 Edited at: 2nd Oct 2012 16:42
Thank you so much, it worked




EDIT: How do you remove it from appearing after youve left the zone?

I work at STL - http://www.stlinteractive.net
D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 2nd Oct 2012 17:37 Edited at: 2nd Oct 2012 17:41
Just switch to a state X that does not execute any action once the player leaves the zone.




If you do not use a trigger zone, use the distance condition:




Make sure the part of your script that displays the HUD has a state condition as well

ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 2nd Oct 2012 17:54



I didnt quite understand, I kinda suck at scripting. When I leave the zone it doesnt dissapear. just stays there forever.

- Nic

I work at STL - http://www.stlinteractive.net
D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 2nd Oct 2012 18:13 Edited at: 2nd Oct 2012 18:17
Here you go:



ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 2nd Oct 2012 22:56
Thanks D0minik


- Nic

I work at STL - http://www.stlinteractive.net

Login to post a reply

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