Advertisement

Author Topic: Respawning in SP  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Respawning in SP
« Reply #15 on: 02 Jan 2005, 22:17:56 »
Try

"_x setPos getMarkerPos {_marker}"

or some variation thereon.
Plenty of reviewed ArmA missions for you to play

Lean Bear

  • Guest
Re:Respawning in SP
« Reply #16 on: 09 Jan 2005, 16:06:39 »
Hmm, no such luck :(

I've heard you need to getPos of the object before you setPos it, perhaps I need to do that?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Respawning in SP
« Reply #17 on: 09 Jan 2005, 16:50:21 »
Perhaps it should be:

"_x setPos getMarkerPos {_marker}" forEach units group _group

Try it anyway.


Planck
« Last Edit: 09 Jan 2005, 16:51:00 by Planck »
I know a little about a lot, and a lot about a little.

Lean Bear

  • Guest
Re:Respawning in SP
« Reply #18 on: 10 Jan 2005, 11:01:32 »
Should I do that for all the lines with that format in it?

eg. "_x setDammage 0" forEach units group _group

as supposed to what I currently have (without the "group")

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Respawning in SP
« Reply #19 on: 10 Jan 2005, 11:44:59 »
I haven't dug through the whole thread and script, but the answer is that it depends on what you have and what you want.

The forEach command takes an array as its last argument.    You need to combine the commands units and group to turn your local variable into the array you want.
Plenty of reviewed ArmA missions for you to play