OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Rochelle on 15 May 2005, 20:14:30
-
Hey guys
ok there something wrong in this part om my script could anyone tell me what it is?
_pos = _this
_x = _pos select 0
_y = _pos select 1
~1
_land = "HeliHEmpty" createvehicle [_x,_y,0]
and
im looking for a script which causes 0.4 dammage for a distance 500m .. i want to make a bomb for a MP Mission im making? Any Help will be named in the Briefing..
-
1.Your script looks normal to me. First line is redundant, but maybe you need it later in your script.
2. Make a trigger, 500 m, name it something. It should be activated by anybody. When your bomb becomes active, place the trigger with setpos at your bombs place. In on activation field in your trigger write:
"_x setDamage ((damage _x)+.4)" foreach units in thislist
That should work on land units. But also on air units 5 KM abowe your bomb. To avoid that (if you have air units in your mission) you have to get some guru to expand that foreach to only take units in 500 m distance from the trigger - direct line, not only in X,Y plane.
-
also is this script right?
_w="M60" createvehicle getpos player
_drv="SoldierWCrew" createunit getpos _w
_drv2="SoldierWCrew" createunit getpos _w
_drv3="SoldierWCrew" createunit getpos _w
_drv moveindriver _w
_drv2 moveinGunner _w
_drv3 moveinCommander _w