[script] Enemies detecting players only within some range

Where Mission Engineer Comrades and the FA Mission Making Template lived
User avatar
wolfenswan
Posts: 1238
Joined: Wed May 25, 2011 4:59 pm

Re: [script] Enemies detecting players only within some rang

Post by wolfenswan » Sun Oct 13, 2013 2:28 pm

try a while {alive car} loop that constantly does doTarget car doFire car sleep 1
My ARMA3 Missions - to download select a branch and pick "Download ZIP".

Black Mamba
Posts: 335
Joined: Sun May 27, 2012 12:11 pm

Re: [script] Enemies detecting players only within some rang

Post by Black Mamba » Sun Oct 13, 2013 3:25 pm

Another hacky way would be to check if the vehicle's empty, and if it is, spawn an enemy dude, hide him, and move him into the driver seat. Then why not even reveal him to be sure.

EsotericReverie
Posts: 84
Joined: Thu Sep 05, 2013 8:30 am

Re: [script] Enemies detecting players only within some rang

Post by EsotericReverie » Sun Oct 13, 2013 3:50 pm

wolfenswan wrote:try a while {alive car} loop that constantly does doTarget car doFire car sleep 1
Sounds like a plan! Will doFire pick a suitable weapon for the target, such as switching to an AT weapon if they have one? Just shooting the car with small arms will take a while.
Black Mamba wrote:Another hacky way would be to check if the vehicle's empty, and if it is, spawn an enemy dude, hide him, and move him into the driver seat. Then why not even reveal him to be sure.
Mhmm, that might work. I tried something similar before, but might have messed it up somehow, is there an easy way to make the invisible man scoot over if someone else wants to drive?

Post Reply