OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ding on 28 Jun 2006, 10:21:20

Title: Progressive respawning (Easy Question)
Post by: Ding on 28 Jun 2006, 10:21:20
Im a bit of a newb to Multiplayer scripting, And im trying to make it so that the players progressivly respawn, E.g.

Starting on the beach until the Lighthouse is captured respawn is on the beach, once the Lighthouse is captured respawn will move up to the lighthouse until the town is captured...

Well what I have done is the following,

created the Description with respawn set in "Base" mode,

I have created a marker named "Respawn_west" on the beach, and have placed a game logic named "Spawn2" by the light house.

Once the lighthouse is captured I have put this in the script file:

_Spawn2 = Spawn2
"Respawn_west" SetMarkerPos _Spawn2

but I recieve an error message and spawn remains on the beach, Can someone help me with the Stupid mistake I have made, thanks :)
Title: Re: Progressive respawning (Easy Question)
Post by: bedges on 28 Jun 2006, 11:16:20
Code: [Select]
"Respawn_west" SetMarkerPos getpos Spawn2
Title: Re: Progressive respawning (Easy Question)
Post by: Ding on 28 Jun 2006, 16:56:01
Thankyou bedges you are a king among men.  ;)