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 'Random'

Author
Message
funny
17
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 19th Jan 2008 09:55
Hi everybody
I want make a ahazardous zone with differents sounds with the condition 'random'.I make this script but not does work..
Can U help me for this ?



Thanks per advance,

funny
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 19th Jan 2008 15:14 Edited at: 19th Jan 2008 15:20
:random=300,state=1:state=10

There are two problems here.

Quote: "RANDOM=X is true when a random value between 0 and X is equal to one"


What you have here is a condition that will be true approx 1 in 300 times. That's just too random. Try something like 3 instead, where the condition will be true apprx 1 in 3 times, unless it is your intent to have it so random.

Also, state=1 is never true, so your action never happens. Try ...

:state=0:state=1
:state=1,random=3:state=10

Best.

EDIT: I'm also a bit confused by the other script (HAVOC SCRIPT) you posted in which the random condition was used properly and was much more complicated than this. If you could write the other script, what was your problem with this simple one?

funny
17
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 19th Jan 2008 15:54
The simplest are sometimes the most complicated....
The fatigue maybe .... lol
thank you at least for the script, I believe to have understood everything concerning 'random '

best

funny

Login to post a reply

Server time is: 2024-11-24 03:30:33
Your offset time is: 2024-11-24 03:30:33