OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rocko Bonaparte on 12 Jun 2005, 07:12:44
-
I'm trying to change the player to a different unit type alltogether, in one smooth motion. I was trying:
player = "SoldierWPilot" createVehicle position player
This spawns a pilot beside me, and I don't become them. If there was going to be a problem, I was expecting I'd become the pilot, but my old self would remain. I recall having some strange respawning issues in multiplayer and having to do some strange things if I want to reassign the player to something else. Is there a trick to this? I also tried:
_something = "SoldierWPilot" createVehicle position player
player = format["%1", _something]
-
(http://www.ofpec.com/yabbse/YaBBImages/search.gif) (http://www.ofpec.com/yabbse/index.php?board=6;action=search)
I guess it's that time of the month for this question to be asked... ::)
-
Well you're thrilling and highly informative reply resulted in a search for the word "player" that came up with this thread:
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=23483;start=0
Perhaps I'm missing something in the thread context, but I don't know if he can't switch over to control the other player from that, or if it's just not possible at all to do the switch this way.
Checking titles in the FAQ didn't have anything to add to this either, but thanks for your patience! ::)
-
it's not possible, other than in a mini campaign, or in multiplayer. HateR_Kint's point is that this question is so often and repeatedly asked, it has become a stalwart of the forums.
it's usually asked under respawning, like this (http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=23502;start=0).