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.

FPS Creator X10 / Showing a .png file when in a trigger zone

Author
Message
ORCLGaming
2
Years of Service
User Offline
Joined: 7th Oct 2014
Location:
Posted: 7th Oct 2014 23:34
well i have managed to get it to work for my trigger zones now but like if i make a new trigger zone to show a diffrent .png file it shows the .png file from the last trigger zone?



;Artificial Intelligence Script

;Header

desc = My Own HUD

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\Tranquilty\equipmentfound.png,hudname=useswitchprompt,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:hudshow=useswitchprompt,state=2

:state=2,plrwithinzone=1:plrsound=audiobank\misc\ping.wav,state=3

:state=3,plrwithinzone=0:hudunshow=useswitchprompt,state=4
unfamillia
6
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 29th Oct 2014 13:50
I am no coder, but, you don't need the second plrwithinzone check in state=2.

You checked if the player was in the zone, in the previous state.

Quote: "it shows the .png file from the last trigger zone"


Are you changing the image name for each new script? For example.

Trigger zone number 1

...gamecore\huds\Tranquilty\equipmentfound.png...
...hudname=useswitchprompt01...
:state=1,plrwithinzone=1:hudshow=useswitchprompt01...

Trigger Zone number 2

...gamecore\huds\Tranquilty\equipmentlost.png...
...hudname=useswitchprompt02...
:state=1,plrwithinzone=1:hudshow=useswitchprompt02...

Trigger Zone number 3

...gamecore\huds\Tranquilty\equipmentfoundagain.png...
...hudname=useswitchprompt03...
:state=1,plrwithinzone=1:hudshow=useswitchprompt03...

Just try to keep everything as unique to that script as possible and it should stop any occurrences of the same image popping up.

As I said, I am NOT a coder, but, I used to dabble in FPI a while back and had issues like these.

I'm not even sure that this will work, but, I hope it helps.

Cheers

Jay.

Login to post a reply

Server time is: 2017-03-23 02:19:33
Your offset time is: 2017-03-23 02:19:33