OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aldo15 on 30 Dec 2011, 02:08:43
-
Hey I got a question.
Could I play with two units in a mission For example: Be a russian soldier and then, be a american soldier.
I ask this, because when I used Mandomissile script for ofp by mandoble, I modified that script and changed it camera false by true, and I was able to watch the missile, and when it struck the bmp I was bmp commander for 3 or 4 seconds and then I was american soldier. Is it possible?
-
I'm afraid it's not possible to do this in OFP. You can do it in cinematics, but not in the mission itself.
-
I think there is a workaround but it can work only in MP environment: you can side up both Eastern and Western units in the same team (better if this team is Resistance team with Resistance allied to no one in order to have East soldiers shoot Western unit and West soldiers shoot Eastern unit) and then, whenever you need to switch from one unit to other, you script-kill (setDammage 1) the former unit and let player to spawn into the latter unit and then, once spawning process get done, you script-revive (setDammage 0) killed unit. You may also want to edit "onPlayerRespawnOtherUnit.sqs" script accordingly in order to cut off cameras between switching from one unit to other.
-
I already saw it's not possible in SP, I tried using the script to respwan in another player, used in MP and it don't work in SP.