OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 02 May 2005, 15:58:26

Title: take control of another unit?
Post by: CopyrightPhilly on 02 May 2005, 15:58:26
hey chaps,

OK i'm using the switchCamera "internal" command to give you view of what another unit is seeing, is there anyway that i could then take control of that unit?

cheers,
Phil
Title: Re:take control of another unit?
Post by: THobson on 02 May 2005, 16:39:31
No
Title: Re:take control of another unit?
Post by: h- on 02 May 2005, 18:43:15
Or...
Maybe you actually could... :P

You could try to use the keyboard input script (at ed depot) and use that to give the unit 'commands' to move (setvelocity and play correct walking/running anim)...

Just a thought...
Title: Re:take control of another unit?
Post by: Flauta on 02 May 2005, 20:29:59
good idea :p or also, get the animation (no idea if there is a command for tahat)  of the "player" and Shiwmove yhe Loon you want to control whit it...
Title: Re:take control of another unit?
Post by: RujiK on 02 May 2005, 22:09:39
Or you could go with the easy way and just setpos and then change the players face! Ha ha ha! (Obviously however the vehicle type wont change.)