OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aldo15 on 21 Dec 2010, 03:52:01

Title: While controlling the soldier
Post by: Aldo15 on 21 Dec 2010, 03:52:01
I have a question: ???

For example, I have a soldier "x" and a soldier "z". The soldier "z" is the player, and I want that when you select the scene mode is placed in comabate "safe", and walk some distance. In intro would be easy and that the soldier "z"is the AI, but in a scene mission how do I do that? :dunno:
Title: Re: While controlling the soldier
Post by: Mr.Peanut on 21 Dec 2010, 15:05:10
You will have to use animations (switchMove/playMove) to control the player.
Title: Re: While controlling the soldier
Post by: Aldo15 on 22 Dec 2010, 01:59:36
How do I use it?
Title: Re: While controlling the soldier
Post by: savedbygrace on 28 Dec 2010, 02:38:06
Animations are best used inside scripts or triggers.
Code: [Select]
unitname switchmove "animationName"Check this (http://www.ofpec.com/ed_depot/index.php?action=details&id=56&game=OFP) resource out or this (http://www.ofpec.com/ed_depot/index.php?action=details&id=205&game=OFP) one.
Title: Re: While controlling the soldier
Post by: Aldo15 on 28 Dec 2010, 13:59:34
Actually make those animations that I'm controlling the soldier to move to any position alone and without the need to handle it.