Home   Help Search Login Register  

Author Topic: Moving Respawn Marker  (Read 1072 times)

0 Members and 1 Guest are viewing this topic.

smallchickens

  • Guest
Moving Respawn Marker
« on: 14 Oct 2004, 06:51:59 »
I am trying to make a map where I am using this script:

--------------------------------------------------------------------
respawn="base"
respawndelay=60

;Base=Respawn at Marker called eBase, wbase
;Respawns have to be: respawn_west Respawn_east
----------------------------------------------------------------------

The script works great but what I want to do with it is make the Wbase and respawn_West markers center around a vehicle that will be moving throughout the map.

The goal is to have the players always respawn close to the vehicle that they have been driving around in.


p.s. This is my first post in these forums. I'm a begginer at editing but I wanted to say that this site has been extremlely helpful in finding what I need.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Moving Respawn Marker
« Reply #1 on: 14 Oct 2004, 12:09:45 »
Welcome to the forum!

As I understand it, this is not a respawn question:  the respawn works fine.     The problem is that you want the respawn marker to be close to a vehicle which moves the whole time.

Assuming that's the case, you're laughing.    Create a little script:-


; this script attaches the respawn marker to the wagon

#loop
"respawn_West" setMarkerPos getPos jeep1
~3
goto "loop"


Syntax not guaranteed, and that's not a working script, just a sketch.   Depending on exactly what you want you can fancy it up a little.  For example replace

getPos jeep1

with

[(getPos jeep1 select 0) + 3, (getPos jeep1 select 1 + 4), 0]

which will put the marker 5m roughly northeast of the jeep.
Plenty of reviewed ArmA missions for you to play

smallchickens

  • Guest
Re:Moving Respawn Marker
« Reply #2 on: 15 Oct 2004, 01:57:31 »
That worked. Thanks allot ;D