Home   Help Search Login Register  

Author Topic: Setting trigger to warp to a specific marker  (Read 2798 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Setting trigger to warp to a specific marker
« Reply #15 on: 22 Jan 2004, 20:41:24 »
Aye ok........try:

"_x setpos getmarkerpos target2" foreach thislist


Try everthing......experiment.....then write a novel.



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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Setting trigger to warp to a specific marker
« Reply #16 on: 22 Jan 2004, 20:45:08 »
# indicates where in the code the error as occurred.
Plenty of reviewed ArmA missions for you to play

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #17 on: 22 Jan 2004, 20:49:26 »
Try everthing......experiment.....then write a novel.

oh believe me itried all sorts of combinations with "" [] {} () ' '
but no workee at all

if someone has an idea which parameters a triggers get and how can i access them...then i m8 be able to do it with a script...i hope

all i need to know is, which parameter reflects the unit which activated the trigger

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Setting trigger to warp to a specific marker
« Reply #18 on: 22 Jan 2004, 20:57:25 »
Another experiment for you:

_yourman = list triggername

_yourman setpos (getmarkerpos "target2")



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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Setting trigger to warp to a specific marker
« Reply #19 on: 22 Jan 2004, 21:01:32 »
Ok ok ok, this has gone to totally guessing the matter.

I have attached a very small example mission of how to do it, which is btw the way adviced to you many times in this thread.

Create a trigger
Activation by Anyone and Repeatedly
Condition: this
On activation: "_x setpos getmarkerpos {target2}" foreach thislist

Create a marker
name it as target2

walk into the trigger and you WILL be setpossed to the marker. I refuse to accept that version this won't work with 1.46.  ::) ;D


G'daem I can't attach the file. I'll open up a http for you.
The zip is named as setpostriggerlist.intro.zip

http://ofptf.kicks-ass.net:23000/pub/
User: guest
Password: guest
Not all is lost.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #20 on: 22 Jan 2004, 21:02:11 »
hmmm...if i read this correctly the upper line goes into Condition and lower line into onActivation field...

Local variable in global space

is the error i get and it points me to _yourman into the condition field

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Setting trigger to warp to a specific marker
« Reply #21 on: 22 Jan 2004, 21:04:36 »
aye .....remove the _


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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Setting trigger to warp to a specific marker
« Reply #22 on: 22 Jan 2004, 21:05:04 »
Plank ment for you to put it in a script, just left that part unmentioned  ;)
Not all is lost.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #23 on: 22 Jan 2004, 21:11:22 »
walk into the trigger and you WILL be setpossed to the marker. I refuse to accept that version this won't work with 1.46.  ::) ;D

i'm afraid you had to accept that it wont work with 1.46

opened your sample mission on 1.46...NO WORKEE....closed 1.46, started 1.91...opened your sample mission...guess what...it worked

But thx a lot for the time you spent ( not meant sarcastic, truly thankful)....good idea, wrong version  ;)

:edit:

i'll try this right now with the script
« Last Edit: 22 Jan 2004, 21:11:57 by myke13021 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Setting trigger to warp to a specific marker
« Reply #24 on: 22 Jan 2004, 21:11:56 »
Artak is right .....my mind was on script...........think I will retire from this thread........just as soon as I finish this beer.


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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Setting trigger to warp to a specific marker
« Reply #25 on: 22 Jan 2004, 21:13:29 »
Damn. It's got to be the ForEach command which was then propably added later than 1.46  :-\
Not all is lost.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #26 on: 22 Jan 2004, 21:21:56 »
uhm...nothing helps...i tried with the script...got some error messages like "error type array, expected object" and some others....tried to play around with syntax...replaced " " with any sort of () [] {}...left them away....nothing helps...

i guess it's quite not possible to do what i like to do in 1.46

I thank you all a lot for your help, you're great mates.

I hope i didn't wasted your time too much.

Not solved the way i hoped, but i'll close anyway.

thx again

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Setting trigger to warp to a specific marker
« Reply #27 on: 22 Jan 2004, 21:22:29 »
Why the **** do you wanna play with 1.46 if you have 1.91?

:beat: *Gets Shot* :beat:

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #28 on: 22 Jan 2004, 21:28:23 »
uhm...because my friends do play 1.46?

forgot to press the solved button

:edit:

reopened...someone said he has a solution?
« Last Edit: 22 Jan 2004, 22:09:40 by myke13021 »

gundernak

  • Guest
Re:Setting trigger to warp to a specific marker
« Reply #29 on: 22 Jan 2004, 22:31:40 »
Someone has written you should place a gamelogic near the marker...

I definetely agree!!!

on activation:
"_x setPos getPos gamelogicname" forEach thislist