Home   Help Search Login Register  

Author Topic: Setpos on a trigger?  (Read 1039 times)

0 Members and 1 Guest are viewing this topic.

Offline MehMan

  • Members
  • *
Setpos on a trigger?
« on: 31 Jul 2006, 17:17:23 »
Is that possible? I'm experimenting with some stuff and I can't get the trigger to be placed where I want it, as in I can't get it to be where I click for example, is this even possible?
Shit happens.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Setpos on a trigger?
« Reply #1 on: 31 Jul 2006, 19:28:14 »
I presume you are referring to placing a trigger in the mission editor.

I don't understand what difficulty you might be having with this if so.

You just select Triggers (F3).....

and double click on the map to bring up the trigger dialog.

You can of course drag the trigger elsewhere afterwards if necessary.


If this is not the problem, please explain a little more.


If you are trying to setPos a trigger as the title suggests then this also is perfectly possible.
Placing the trigger by clicking on the map should also be possible, but you would need to use onMapSingleClick.

Maybe something like:

onMapSingleClick {triggername setPos _pos; onMapSingleClick {}}



Planck
« Last Edit: 31 Jul 2006, 19:52:44 by Planck »
I know a little about a lot, and a lot about a little.

Offline MehMan

  • Members
  • *
Re: Setpos on a trigger?
« Reply #2 on: 31 Jul 2006, 20:23:57 »
Yeah, somehow I got it working the second time around, wierd. Well thanks anyway.
Shit happens.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Setpos on a trigger?
« Reply #3 on: 12 Aug 2006, 22:26:16 »
Note that setPossing a trigger

trigname setPos [x,y,z]

will place the trigger z metres above sealevel
not a problem if it is just a trigger, but bit of a pain if it is to be used as a sound source, or the location of an explosion.
« Last Edit: 13 Aug 2006, 06:48:32 by THobson »