OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Diealot on 05 Nov 2002, 02:44:55

Title: Another respawing Question
Post by: Diealot on 05 Nov 2002, 02:44:55
Here is what I would like to do. If a member of a group gets killed I would like to have him respawn at a location away from the group alive. He would have to stay there until the Group finished the currant raid and than rejoin the group when they ariive at his position. I have my description file set to Respawn type 3 "Base" and I have put a marker at The base HQ, but the player seems to want to respawn at the group entry point. Can I have him respawn at this location and that magicly move him to another location?
Title: Re:Another respawing Question
Post by: Mike on 05 Nov 2002, 22:02:44
hello.. Try making a trigger.. then a gamelogic where u want the unit to go..

on activation: playername setpos (getpos gamelogic)

make it activate when u want it to... I think if u just use "alive playername" in condition he will warp when the game starts.. so make another trigger with condition "!alive playername" and the on activation "somevar = true"

then in the other trigger that warps him put condition:

condition: alive playername && somevar
activation: playername setpos (getpos gamelogic)