Home   Help Search Login Register  

Author Topic: Zapping one guy to another place  (Read 479 times)

0 Members and 1 Guest are viewing this topic.

Dubieman

  • Guest
Zapping one guy to another place
« 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...
Code: [Select]
_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 :)

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Zapping one guy to another place
« Reply #1 on: 22 Jul 2004, 22:30:09 »
to teleport use:

unitname setpos (getpos placename)

place name can be a gamelogic for instance
Proud Member of the Volunteer Commando Battalion

Dubieman

  • Guest
Re:Zapping one guy to another place
« Reply #2 on: 23 Jul 2004, 01:38:57 »
Sounds solid. Thanks. ;)

minimilo

  • Guest
Re:Zapping one guy to another place
« Reply #3 on: 23 Jul 2004, 21:03:29 »
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

Dubieman

  • Guest
Re:Zapping one guy to another place
« Reply #4 on: 23 Jul 2004, 21:28:59 »
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