OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: headshot_snipe on 08 Sep 2002, 17:02:57
-
hullo ;D ;D
Is it possible to make bombs appear in the radius of a trigger at random ???. If anybody knows could they help me 'cause naming game logics one after the other is very long especially if you are making a big airstrike. 8)
thankx
HSS
-
Yeah, stick this rune in your "on activation" field.
Note - set
radius to the desired radius in meters
set the number of random 360s in the array to the number of bombs.
For example, 4 bombs, 100 m radius.
LGB = "LaserGuidedBomb"; radius = 100; "bomb = LGB Camcreate [(radius * (_x mod 1))*sin _x, (radius * (_x mod 1))*cos _x, .5]" Foreach [random 360, random 360, random 360, random 360]