OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dubieman on 22 Jul 2004, 21:34:36
-
Hey there,
My problem is that I have a wrecked heli right, and there are two pilots protecting the setcaptived injured ppl. Now after you leave I have it so the Russian squad kills the two pilots and I was gonna have the injured just join the russian squad to act as POWs and be taken to a pow camp. But these injured have busted legs and it'd take forever for them to get there. Is there any way to teleport them there?
I don't want the player coming back and catching up with the captives or the squad. I want them to try and find their mates. ;)
So could I teleport them or what?
Alternatives?
I wanted it to be mysterious and I had a script that I thought would work but it crapped out. My captives are named "captive1, captive2, captive3, and captive4" and I dunno...
_captive1 = _this select 0
_captive2 = _this select 1
_captive3 = _this select 2
_captive4 = _this select 3
_captive1 domove g1
_captive2 domove g1
_captive3 domove g1
_captive4 domove g1
_captive1 removeweapon "M16"
_captive2 removeweapon "M16"
exit
Thanks :)
-
to teleport use:
unitname setpos (getpos placename)
place name can be a gamelogic for instance
-
Sounds solid. Thanks. ;)
-
wouldnt it be possible to put a medic in the russian squad, because if the US men are "friendly" with russians, they should heal him
-
I dont want them to be healed. That's the whole reason you need a truck or something for the mission, so the injured don't crawl for 3km. ::)
Now if you can transport them somewhere, and heal them then, go ahead, but there are tons of troops guarding the good stuff. :P