Home   Help Search Login Register  

Author Topic: can a trigger be moved during a mission?  (Read 1875 times)

0 Members and 2 Guests are viewing this topic.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
can a trigger be moved during a mission?
« on: 17 Mar 2007, 04:37:34 »
anyone know if it's possible to setpos a trigger? like can you move a respawn killzone 10meters back ingame? i know, weird question.
just setpos & forgetpos!

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: can a trigger be moved during a mission?
« Reply #1 on: 17 Mar 2007, 05:17:04 »
I'm not sure if it will work but you could always test it by getting the position of the trigger then setpos the trigger and then compare. Alternatively you can create a new trigger on the fly at the new location.
Xbox Rocks

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: can a trigger be moved during a mission?
« Reply #2 on: 17 Mar 2007, 06:34:45 »
I've tried getting it to move but can't  :(

Quote
Alternatively you can create a new trigger on the fly at the new location.

^^not sure I understand?  :dunno:
just setpos & forgetpos!

Offline Cheetah

  • Former Staff
  • ****
Re: can a trigger be moved during a mission?
« Reply #3 on: 17 Mar 2007, 09:32:13 »
As far as I know Thobson used one trigger for multiple purposes in Abandoned Armies, so you should be able to move them. He also advised me once to keep a trigger following the car (setPos it on the car while it drives.

Should work.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: can a trigger be moved during a mission?
« Reply #4 on: 17 Mar 2007, 09:35:04 »
Yes (as cheetah already points out), you can setPos a trigger :yes:
Just name your trigger and it can be accessed like any other object (setPossed, deleted..).

Quote
not sure I understand?
hoz means that as ArmA includes commands for creating a trigger and setting it's attributes you can create fully functional triggers by scripting
createTrigger
And the commands to set all the 'innards' of the trigger start from
setTriggerActivation
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: can a trigger be moved during a mission?
« Reply #5 on: 17 Mar 2007, 19:16:27 »
wow - thanks - i was unaware of the createtrigger and settrigger activation!
That looks awesome :D
thanks again~
just setpos & forgetpos!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: can a trigger be moved during a mission?
« Reply #6 on: 09 Apr 2008, 23:47:08 »
I know this thread is old but the info is still needed.
How do I move a trigger or create a trigger?

Move would be preferable.

The links in this thread no longer work.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: can a trigger be moved during a mission?
« Reply #7 on: 09 Apr 2008, 23:50:55 »
Yes (as cheetah already points out), you can setPos a trigger :yes:
Just name your trigger and it can be accessed like any other object (setPossed, deleted..).

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: can a trigger be moved during a mission?
« Reply #8 on: 09 Apr 2008, 23:53:51 »
So I use,

Code: [Select]
trigname setpos getpos GLname
I knew it all along, just couldn't remember.
« Last Edit: 09 Apr 2008, 23:56:38 by The-Architect »
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."