Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Scripts probablitiy
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Scripts probablitiy (Read 542 times)
0 Members and 1 Guest are viewing this topic.
Iva
Guest
Scripts probablitiy
«
on:
12 Apr 2003, 15:51:31 »
Hi
I need help for my script.I was wondering how can i set probablitiy for diferent outcomes.
Example if my plane is dammaged wery hard the some of the gears will not raise or lower.and is it possible to put bombs and AA rockets on the plane
Logged
macguba
Former Staff
Re:Scripts probablitiy
«
Reply #1 on:
16 Apr 2003, 14:52:40 »
You'll have to play with the syntax, but try
? 0.4<(getdammage plane1)<0.6:whatever
Use
random
to generate a random number which you can use in a similar way.
Logged
Plenty of
reviewed ArmA missions
for you to play
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Scripts probablitiy
Top of page