Home   Help Search Login Register  

Author Topic: Homicide bomber troubles.  (Read 2235 times)

0 Members and 1 Guest are viewing this topic.

Offline Recoill

  • Members
  • *
  • CANISTER ON FIRE!
Homicide bomber troubles.
« 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.

Code: [Select]
_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
Code: [Select]
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.

Offline Cheetah

  • Former Staff
  • ****
Re: Homicide bomber troubles.
« Reply #1 on: 10 Apr 2007, 07:27:33 »
bomb = "Sh_120_SABOT" createVehicle getPos _bomber

Taken from the OFPEC Weapon List. The code you're using would've worked in OFP.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Recoill

  • Members
  • *
  • CANISTER ON FIRE!
Re: Homicide bomber troubles.
« Reply #2 on: 10 Apr 2007, 08:19:52 »
Cool.... Thanks Cheetah works like a dream  :D

Except i think this works better Sh_120_HE  ;)

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: Homicide bomber troubles.
« Reply #3 on: 11 Apr 2007, 08:05:53 »
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

Offline Recoill

  • Members
  • *
  • CANISTER ON FIRE!
Re: Homicide bomber troubles.
« Reply #4 on: 11 Apr 2007, 09:51:39 »
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
« Last Edit: 11 Apr 2007, 23:03:09 by bedges »

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: Homicide bomber troubles.
« Reply #5 on: 11 Apr 2007, 21:37:05 »
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:

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Homicide bomber troubles.
« Reply #6 on: 11 Apr 2007, 23:07:27 »
a slight alteration to the script above:

Code: [Select]
_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.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: Homicide bomber troubles.
« Reply #7 on: 11 Apr 2007, 23:43:48 »
when I tried it, I got this error:


Offline Recoill

  • Members
  • *
  • CANISTER ON FIRE!
Re: Homicide bomber troubles.
« Reply #8 on: 12 Apr 2007, 08:55:47 »
Heres my "basic" demo mission http://files.filefront.com/Homicide_bomber/;7217559;/fileinfo.html

Hope it works for you.
« Last Edit: 13 Apr 2007, 08:32:38 by bedges »

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: Homicide bomber troubles.
« Reply #9 on: 12 Apr 2007, 23:24:57 »
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

Offline Recoill

  • Members
  • *
  • CANISTER ON FIRE!
Re: Homicide bomber troubles.
« Reply #10 on: 13 Apr 2007, 21:09:19 »
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
« Last Edit: 13 Apr 2007, 21:24:01 by bedges »

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: Homicide bomber troubles.
« Reply #11 on: 13 Apr 2007, 21:12:46 »
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:
« Last Edit: 15 Apr 2007, 09:25:40 by Trash Can Man »