Home   Help Search Login Register  

Author Topic: Moving trigger???  (Read 1110 times)

0 Members and 1 Guest are viewing this topic.

Offline Crowey

  • Members
  • *
Moving trigger???
« on: 03 Jun 2008, 22:28:42 »
LOL you guys gonna get sick of me, lol.
Any way to attatch a trigger to a vehicle? the reason i ask is  basically if the player unit gets too close to the enmy unit whilst in a vehicle(or on foot i suppose would work the same?) the enemy would be alerted? ie following in a car and player pulls up too close so the enemy gets out and engages?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Moving trigger???
« Reply #1 on: 04 Jun 2008, 00:17:24 »
triggerAttachVehicle perhaps?


Planck
I know a little about a lot, and a lot about a little.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Moving trigger???
« Reply #2 on: 04 Jun 2008, 00:45:08 »
mmm, I think that command just "groups" the trigger with a unit or vehicle, that is, detects its presence, or the presence of group members. I dont think it really displaces the trigger with the vehicle.

But you can setPos a trigger in a loop to follow the position of a vehicle. Just consider that once the trigger placement is changed, it might take a second before its list of affected units is updated from the new position.

Offline schuler

  • Contributing Member
  • **
Re: Moving trigger???
« Reply #3 on: 04 Jun 2008, 06:08:45 »
Code: [Select]
? velocity vehicle > 50 : [] trigger1
;with Planck's   
trigger1 triggerAttachVehicle [player]
maybe?
Semper Fi