OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Recoill on 10 Apr 2007, 03:10:03
-
Got this script from the Editors Depot,
I've been trying to get it to work in Armed Assault but with no luck.
_bomber = _this select 0
_target = _this select 1
_distance = _this select 2
_remove = _this select 3
_combatmode = _this select 4
_bomber setcombatmode "_combatmode"
_bomber setspeedmode "full"
_bomber setunitpos "UP"
~0.001
? hoppaiplasket=_remove : removeallweapons _bomber
#over
_bomber commandmove getpos _target
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
goto "over"
#booom
bomb="heat120" camcreate getpos _bomber
bomb="shell120" camcreate getpos _bomber
exit
The bomber moves to the target but wont blow up! (how rude is that).
I think its this part thats not working bomb="heat120" camcreate getpos _bomber
bomb="shell120" camcreate getpos _bomber I tried createvehicle instead of camcreate
but i dont no much about scripting so i couldnt get the syntax right any help would be appreciated.
Also the ammo names have changed from OFP to ArmA "heat120" "shell120" not sure exactly what to change it to.
-
bomb = "Sh_120_SABOT" createVehicle getPos _bomber
Taken from the OFPEC Weapon List (http://www.ofpec.com/COMREF/armaweapons.php). The code you're using would've worked in OFP.
-
Cool.... Thanks Cheetah works like a dream :D
Except i think this works better Sh_120_HE ;)
-
the script didn't work for me....the civilians just run up to the target and just stand there. ???
Can you post a demo mission?
TCM
-
Heres the instructions that came with the script,
First line go's in the bombers init:
[BomberName, TargetName, GameLogicName, Distance, RemoveWeapons, CombatMode] exec "suicide.sqs"
BomberName = The name of the suicide bomber.
TargetName = The Targets Name. Note that you can use everything from a GameLogic to a tank.
Distance = The distance the bomber have between him and the target before he detonates. I advice you to have a distance of at least 5. The explosion is quite big and infantary should die quite easy at the range of 20. A tank target should have 5, maybe 10 in range.
RemoveWeapons = For a more realistic bombing the bomber should have no weapons. If you want the bomber to have the equipment you should type FALSE and if you donÂ't want the equipment you should type TRUE. Note that you canÂ't have equipment on one guy and not on the other(if you activate this script 2 times).
CombatMode = Do you want the bomber to fire back at his enemys or do you want him to storm only? This text was copied from the official command reference:
BLUE (Never fire), GREEN (Hold fire - defend only), WHITE (Hold fire, engage at will), YELLOW (Fire at will), RED (Fire at will, engage at will).
I recomend you use BLUE, GREEN or YELLOW.
Have fun :D
-
I have that very script....I KNOW the instructions. However, the script works well in OFP. When Applied in ArmA, is a different matter. All the bombers do on my test mission is run up to the target and stand there. :confused:
-
a slight alteration to the script above:
_bomber = _this select 0
_target = _this select 1
_distance = _this select 2
_remove = _this select 3
_combatmode = _this select 4
_bomber setcombatmode _combatmode
_bomber setspeedmode "full"
_bomber setunitpos "UP"
~0.001
? (hoppaiplasket == _remove) : removeallweapons _bomber
_bomber commandmove getpos _target
#over
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
goto "over"
#booom
bomb = "Sh_120_SABOT" createVehicle getPos _bomber
bomb = "Sh_120_SABOT" createVehicle getPos _bomber
exit
should work just the same as the version above, only without the length.
-
when I tried it, I got this error:
(http://img255.imageshack.us/img255/9843/errormd2.jpg) (http://imageshack.us)
-
Heres my "basic" demo mission http://files.filefront.com/Homicide_bomber/;7217559;/fileinfo.html (http://files.filefront.com/Homicide_bomber/;7217559;/fileinfo.html)
Hope it works for you.
-
Ummmm In your download all you sent was the .sqm file. May I suggest that you Zip your whole test mission including the script you use. Anyone else using your link will be lost as to how to use it. Thanks ???
TCM
-
Sorry TCM didnt notice i uploaded the wrong file. ::). Thanks for the heads up.
Heres the ZipÂ
http://files.filefront.com/HomicideBomberIntrozip/;7231127;/fileinfo.htmll (http://files.filefront.com/HomicideBomberIntrozip/;7231127;/fileinfo.htmll)
-
That's no problem....we're all human! ;) (Atleast that's what my dad keeps saying!)
TCM
edit: I believe this topic to be resolved....If recioll is satisfied. :good: