OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terrazasjs on 04 Jun 2003, 00:49:19
-
okey guys i already try everything to make the plane indestructible but the flank keep destroying it;but the flank script use the "shell73",and this is the line that i use to call it: [150,10,blackhawk,log1,"shell73"] exec "flak.sqs" where:
150;area of flak around target
10;random height of flak
blackhawk;target aircraft
log1;game logic name
"shell73";ammo to use
now if i only know how to change the hit and indirect hit in the "shell73" the issue would be resolved because i can lower those values making the "shell73"less dangerous if you know how do this can you show me;beleave me i tried to put diferent types of ammo but they dont work as good as the "shell73" like the mortar you can hear the explosion but you dont see the ligth explosion,and heat120 it's just way to strong.please show me how to change those values using the same flank script:
;Created by Pica
;
;area of flak around target
;random height of flak
;target aircraft
;game logic name
;ammo to use
;example
;[150,10,blackhawk,log1,"shell73"] exec "flak.sqs"
_area = _this select 0
_height = _this select 1
_target = _this select 2
_logic = _this select 3
_ord = _this select 4
#loop
_where = getpos _target
_logic setpos [(_where select 0) - random _area + random _area, (_where select 1) - random _area + random _area, (_where select 2) + random _height +10]
_bomb = _ord camcreate getpos _logic
_bomb = _ord camcreate getpos _logic
~random 2.5
;you can change the condition below the end
? alive _target : goto "loop" thank you for your patience.
-
u dont change da shells power - its in da config.cpp
but u can make new shell (addon means dat da player needs 2 D/L it :-X)
LCD OUT
-
why not using a "Grenade" instead of the SHELL73?
simon
-
it looks like the script only creates a shell above the target so you might be able to get away with adjusting the height a bit like this
_logic setpos [(_where select 0) - random _area + random _area, (_where select 1) - random _area + random _area, (_where select 2) + random _height +15]
-
Instead of "SHELL73" try "HEAT73".
Shells will kill (or very seriously injure) a unit out to about 12m. Heat will need to be within about 5 or 6 metres to do any damage at all ;)
-
howsabout using the (AA-) "cannon25AP" (or wuz it HE?), the one that the M2A2 uses :)