Home   Help Search Login Register  

Author Topic: Instead of "East not present"?  (Read 577 times)

0 Members and 1 Guest are viewing this topic.

Tomasz

  • Guest
Instead of "East not present"?
« on: 25 Sep 2004, 23:29:00 »
Hey,

how can I get a trigger activated when the battle has finished; ie there isnt much sooting anymore and you can return to base? I don't wabt to use East not present for then I have to find that last enemy soldier, which you know is awfull ::)

cheers

Tomasz

Nulear_Man

  • Guest
Re:Instead of "East not present"?
« Reply #1 on: 26 Sep 2004, 00:44:35 »
you could use "Fired" eventhandlers (added to all eastunits)
Then have that script look like this

Code: [Select]
Fired.sqs
_Unit =_this select 0

; If Shooter is Player then exit
? _Unit == Player : exit

; MaxDistance From Player inorder for it to count as a shoot near player
_MaxDistance = 250

? (Side _unit) == East and (_Unit Distance Player <= _maxDistance) : EastFiring = true
exit

And have another script like this

Code: [Select]
Checkfire.sqs

MinNoActivityTimeB4Reporting = 10

#Loop1
? EastFiring : EastFiring = False; _FireStartTime = _time; Goto "Loop2"

#Loop2
FiringTime = _time
~1
? EastFiring : GOto "Loop1"
? !EastFiring : TotalNotFiringTime = _Time - _FireStartTime
? TotalNotFiringTime > _MinNoActivityTimeB4Reporting : hint "seems clear"; Goto "loop1"

GOto "Loop2"












Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Instead of "East not present"?
« Reply #2 on: 26 Sep 2004, 02:45:45 »
Have two triggers:  one is your standard not present trigger.    The other covers the same area:-

Activation Box:  East not present
Condition:   count thislist < 6
On Activation:   "_x allowFleeing 0" forEach thislist; "_x setDammage 0" forEach this list; "_x doMove getPos player" forEach thislist

Plenty of reviewed ArmA missions for you to play