Home   Help Search Login Register  

Author Topic: Moving a group on a map  (Read 464 times)

0 Members and 2 Guests are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Moving a group on a map
« on: 04 Nov 2004, 00:01:08 »
I want to have a group on a little island and then, when the player hits a trigger, have that group teleport to a position where the player cannot see and then move towards a position governed by a waypoint.

Any ideas how I do it?
I've looked at the setpos command but it desn't help.
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 macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Moving a group on a map
« Reply #1 on: 04 Nov 2004, 00:12:48 »
setPos does help.

Place the waypoints where you want them and the group on teh little island.   They'll try to follow the waypoints but not to the point of drowning, so they should just stand around on the island.

Place a gamelogic where you want them to materialise.    

The trigger:-

Condition:  as you like
On activation:  "_x setPos getPos GL1" forEach units grp1

Not sure what happens if you teleport them all to the same spot, but you can experiment.
« Last Edit: 04 Nov 2004, 00:14:03 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Moving a group on a map
« Reply #2 on: 04 Nov 2004, 03:20:23 »
well you also need to get them into grp1
a trigger covering the whole tiny island
activated by the side that the units are on, and it think in activation you type:
grp1 = thislist

syntax and correctness not garunteed  :P

bored_onion

  • Guest
Re:Moving a group on a map
« Reply #3 on: 04 Nov 2004, 19:00:39 »
Quote
Not sure what happens if you teleport them all to the same spot, but you can experiment.

if it causes a problem you can adjust their positions to not clash in a script by altering the numbers in the position array but it might be tiresome...

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Moving a group on a map
« Reply #4 on: 04 Nov 2004, 19:29:35 »
or just put a delay after you've setpossed each guy.

:beat: *Gets Shot* :beat:

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Moving a group on a map
« Reply #5 on: 05 Nov 2004, 16:05:19 »
Thanks for he support guys it orked a treat. All of the units were setpos'd to the place at the same time and they kind of just appaeared as one unit and then popped out and turned into a group.

Not sure what would happen with different unit types like a tank and some guys or whatever.

Anyway. Thanks again.  ;D
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."