Home   Help Search Login Register  

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

0 Members and 2 Guests are viewing this topic.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Setting trigger to warp to a specific marker
« on: 22 Jan 2004, 05:12:12 »
hay folks...it's me the noob.... ;)

i think this is some very basic stuff but i don't get it to work...

I want to put a trigger, when someone hit it, he will setpos immediately to somewhere else...target will be a marker.

I already tried it with trigger itself and also with script

trigger i set anyone present repeatedly, on activation: this setpos getmarkerpos "markername"

tried this also with a script, using the same syntax but none of this worked...m8 be a problem that i dunno how to access the info's the trigger reveals from the activating unit.

i'm sorry if i waste your time with such a basic crap...but...when i can't get help from here...where else?

GrimMonkey

  • Guest
Re:Setting trigger to warp to a specific marker
« Reply #1 on: 22 Jan 2004, 05:20:07 »
Try putting a Game Logic right under the marker and call it GL1,
Then write;
Code: [Select]
This SetPos GetPos GL1
Edit: In the On Activation field of the trigger, of course.


Beware the GrimMonkey
« Last Edit: 22 Jan 2004, 05:21:06 by GrimMonkey »

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #2 on: 22 Jan 2004, 05:24:24 »
neg...no workee...did i said i work with 1.46.....and yes, i know resi is better  ;D

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 #3 on: 22 Jan 2004, 11:00:13 »
Place a marker and name it as markername
Place a trigger with the following

Type: anyone, repeatedly
In the on activation field of the trigger:
"_x setpos getmarkerpos {markername}" foreach units thislist


would that work?
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Setting trigger to warp to a specific marker
« Reply #4 on: 22 Jan 2004, 11:04:30 »
I was writing a reply when I noticed Artak had just beaten me to it.

Note that at the moment, if you're moving anything at all, you're moving the trigger.

Plenty of reviewed ArmA missions for you to play

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #5 on: 22 Jan 2004, 17:37:03 »
still not working...i'm getting a error, saying:
"_x setpos getmarkerpos {markername}" foreach units thislist#"Error type array, expected Object,Group

when i read the line correctly, this needs an additional trigger, named "thislist"...how do i use this...putted one inside and named it "thislist" but still no workee.

I hope i do not annoying you and i'm very happy you try to help me, even whn it's such a noobish crap  :)

thx to all who replied till now...you're really cool guys

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:Setting trigger to warp to a specific marker
« Reply #6 on: 22 Jan 2004, 18:21:32 »
"_x setpos getmarkerpos {markername}" foreach units thislist

Just remove the 'units' in the line above and everything will be fine. 'thislist' is NOT a group so units cannot be put in front of it.

Corrected line:
"_x setpos getmarkerpos {markername}" foreach thislist

Cheers

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #7 on: 22 Jan 2004, 18:32:49 »
hmmm....thx for the hint alimag...

but still no workee....now getting another error:

'_x setpos getmarkerpos ¦#¦{target2}': Error Invalid number in Expression

i tried to replace the {} with [] and () but didn't helped.

but thx for your time....didn't thought this could be that complicated.

And just to remember...i'm usin 1.46  ;D

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 #8 on: 22 Jan 2004, 19:24:43 »
Umm.. Try this time without the 'units', like
"_x setpos getmarkerpos {markername}" foreach thislist
Not all is lost.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #9 on: 22 Jan 2004, 19:26:26 »
umm...this is the same line as alimag said...tried this...read post above to see what i got

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Setting trigger to warp to a specific marker
« Reply #10 on: 22 Jan 2004, 20:04:52 »
Try

"_x setpos getmarkerpos {"target2"}" foreach thislist

:beat: *Gets Shot* :beat:

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 #11 on: 22 Jan 2004, 20:23:37 »
Oh, right  ;D
Well, all I can say is that it should work.

Quote
'_x setpos getmarkerpos {target2}'
You didn't type it like that in the trigger did you? That's just what the error message makes the line look like, right? Because it's ment to be exactly like we wrote it, with the quotation marks.
Not all is lost.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #12 on: 22 Jan 2004, 20:24:03 »
unknown operator....thats what i get when i insert your line in it, Armstrong

but thx for tryin

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 #13 on: 22 Jan 2004, 20:28:36 »
I note that the line you were trying has ' instead of "

'_x setpos getmarkerpos ¦#¦{target2}'



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

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Setting trigger to warp to a specific marker
« Reply #14 on: 22 Jan 2004, 20:38:26 »
ehm...this line

'_x setpos getmarkerpos ¦#¦{target2}': Error Invalid number in Expression

is what the error message said on top of the screen....the ¦#¦ isn't part of the line i inserted into the triggers onActivation field...i always used copy paste on every possible solution posted in here to make sure there'll be no typo from my part ;-)

actually it looks like this:

"_x setpos getmarkerpos {target2}" foreach thislist

but not working