Home   Help Search Login Register  

Author Topic: Making an empty vehicle an enemy to east side  (Read 420 times)

0 Members and 1 Guest are viewing this topic.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Making an empty vehicle an enemy to east side
« on: 15 Jul 2004, 00:30:15 »
How can I make an empty vehicle so that the enemy will regard it as a threat and fire upon it?  Is it even possible?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Making an empty vehicle an enemy to east side
« Reply #1 on: 15 Jul 2004, 00:37:43 »
Hmmm.... create it as an enemy vehicle, name it lorry1 and in the init field write

deleteVehicle lorry1D

Dunno, worth a try ....
Plenty of reviewed ArmA missions for you to play

ponq

  • Guest
Re:Making an empty vehicle an enemy to east side
« Reply #2 on: 15 Jul 2004, 08:19:31 »
I don't think so the easy way.

But ofcourse you can work around it. I'd create a trigger around the vehicle [Present, Repeatedly], activated by [enemy side].

Condition: this and alive YourVehicleName

Activation: EnemiesHere = thislist; [YourVehicleName] exec "FireAtVehicle.sqs".

____
Then in FireAtVehicle.sqs you'd order them  DoTarget and DoFire at the position of the Vehicle. Something like this:
Code: [Select]
;little script to target at empty vehicle...not tested ;)
;syntax: [YourVehicleName] exec "FireAtVehicle.sqs", where YourVehicleName is the target.

_i =0
_Target = _this select 0

#loop
~0.01
?!(alive _target): exit
_dude = EnemiesHere select _i

;distance check, so they have to be within 25 meters before firing (change this as you like
_dis = _dude distance _target
?_dis > 25 goto "SkipTargetting"

_dude DoTarget _target
~0.5
_dude Dofire _target

#SkipTargetting
_I =_i +1
?_i > (count EnemiesHere): _i = 0
goto "loop"

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Making an empty vehicle an enemy to east side
« Reply #3 on: 15 Jul 2004, 17:52:10 »
Ponq, that sounds like the best plan.  I will give it a try, thanks.