OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Bama on 21 Jun 2008, 05:27:55

Title: Player Spawn as a different type of unit
Post by: Bama on 21 Jun 2008, 05:27:55
I need a script so that when a player is killed he repawns as a different type of unit.  I tried using to search but did not find what I was looking for.
Any help would be appreciated.
Thanks,
Title: Re: Player Spawn as a different type of unit
Post by: h- on 21 Jun 2008, 07:32:30
I'm guessing this is MP related so moved this here..
Title: Re: Player Spawn as a different type of unit
Post by: Rommel92 on 21 Jun 2008, 12:24:55
Not Possible if your referring to a diferent model.
Title: Re: Player Spawn as a different type of unit
Post by: Bama on 21 Jun 2008, 14:14:34
Yes multiplayer, for instance could change from "SoldierWSniper" to  "SoldierWPiloit", not just switch weapons.  I had remembered on the Zombie mod for OFP when you die you would respawn as a Zombie.  I've looked at it but could not find how he was changing the player.
Title: Re: Player Spawn as a different type of unit
Post by: Trash Can Man on 21 Jun 2008, 20:08:06
yes, but if I remember correctly, the players that were killed and were re-animated didn't change model-types. they are the same model but altered to look like they have been chewed on!  ;)

My friend Bama is looking to possibly expand on this I think....

TCM
Title: Re: Player Spawn as a different type of unit
Post by: Spooner on 22 Jun 2008, 00:49:07
I was under the impression that if you have respawn="group" set in the description.ext, then you can add a brand new soldier to the group in the player's died handler. He will then respawn in that new body rather than in an exact copy of the one he died in. Don't quote me on that though, since I've never tried to do it myself (and I assume it works in MP). Maybe try some searching on that...
Title: Re: Player Spawn as a different type of unit
Post by: Trash Can Man on 22 Jun 2008, 00:58:17
I think that is probably what he's looking for...  :dunno: