[script] Enemies detecting players only within some range

Workshop for all Mission Engineer Comrades. Home of the FA Mission Making Template.
User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

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

Post by wolfenswan »

try a while {alive car} loop that constantly does doTarget car doFire car sleep 1

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 »

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 »

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