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 / Help with script

Author
Message
bman332211
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 16th Nov 2009 21:07 Edited at: 17th Nov 2009 01:54
!!!!!MODS PLEASE DELETE THIS THREAD!!!!!!!!



hi i am new to makinging scripts and i am wonder how to make it when the player gets close to an oblect it shows a hud and when the player uses the action key it plays a sound.

This is what i have now but it isnt working


;Artificial Intelligence Script

;Header

desc = Sound In Zone

;Triggers

:state=0:state=1
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga
:state=0,plrdistwithin=60,plrusingaction=1:activate=2
:state=1,,sound=$0

; End of script


(i don't know how to add codes in this forum)

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 16th Nov 2009 21:42
Right, what this script is doing, as soon as it starts, it is detecting that it is state=0, then changing it to state = 1 so the lines



arent ever executed.

heres a revised version for you



It Should work

BTW, to add codes, you use the [code ] and [/code ] tags, without the spaces
bman332211
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 16th Nov 2009 21:52 Edited at: 17th Nov 2009 01:54
Thank you very much ill try it now!

[EDIT]

it's not working

1) were do you add the cod
2) there is no hud or sound

i really appreciate your help though

bman332211
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 16th Nov 2009 22:04 Edited at: 17th Nov 2009 01:55
[Edit] it works fine now!

Now i got something. with this script there are 1 problem

1) there is no hud



Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 16th Nov 2009 23:18
because somewhere in your script you must have

hudmake=(hudname)
hudshow=(hudname)

i think, i havent scripted in quite a while. try it out see if it works.
bman332211
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 16th Nov 2009 23:22 Edited at: 17th Nov 2009 01:55
!!!!Thanks a lot dude you really helped a lot!!!!

Login to post a reply

Server time is: 2024-11-25 05:19:55
Your offset time is: 2024-11-25 05:19:55