Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Setpos on a trigger?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Setpos on a trigger? (Read 1040 times)
0 Members and 1 Guest are viewing this topic.
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?
Logged
Shit happens.
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
»
Logged
I know a little about a lot, and a lot about a little.
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.
Logged
Shit happens.
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
»
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Setpos on a trigger?
Top of page