Alpha1 0 Posted June 17, 2002 Hi everyone, I stuck with this guy all day today and never make him move again. He use to sit in the chair and when I get close to him he stand up and run away. But what I can do is when I get close he just stand up and stay right there wait for me to shoot him. What am I missing? Thanks a lot! Here's the code: _leader = Alpha _runner = runguy _waypoint = Jeep1 _runner switchmove "FXStandUnivTable" ? (_runner distance _leader < 20) : goto "move" #move ~5 _runner switchmove "" _runner commandmove getpos(_waypoint) exit Share this post Link to post Share on other sites
LauryThorn 0 Posted June 17, 2002 1)Are you sure that that "commandmove" command is working properly? I can't figure anything else.. I've used command "doMove" when I want someone to move. 2) Are you sure that the distance thing works? Have you put some hint message in the beginning of "move" part? Share this post Link to post Share on other sites
Alpha1 0 Posted June 17, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> 1)Are you sure that that "commandmove" command is working properly? I can't figure anything else.. I've used command "doMove" when I want someone to move. 2) Are you sure that the distance thing works? Have you put some hint message in the beginning of "move" part? <span id='postcolor'> Notthing for sure as I am a newb about OFP script language and learning. However, if I don't put him in the chair he run just fine. I don't know what difference between commandmove and domove, for me in this case the guy work the same. Share this post Link to post Share on other sites
InqWiper 0 Posted June 17, 2002 This is how you make him sit on the chair (so noone else will ask later): UnitName Swithcmove "OnChair" This is how you make the unit stand up again: UnitName switchmove "" If you wounder something like this in the future dont hassitate to have a look in the very useful comref. Here is what comref has to say about switchmove: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">soldier switchMove moveName Operand types:   soldier: Object   moveName: String Type of returned value:   None Description:   When used on person, given move is started immediatelly (no transition). Use switchmove "" to switch back to default movement is there is no transition back, otherwise person may be stuck. Example:   soldierOne switchMove "FXStandDip" <span id='postcolor'> Share this post Link to post Share on other sites
Alpha1 0 Posted June 19, 2002 Hi again everyone. I think you guy missunderstood my question. However I am going to make a short question here hope everyone get what I mean.:) .How to make the guy walk again after he stand up from the chair? Because I found out that the guy don't walk again while I wrote the script above. Please test it and if you found any good idea, or if anyone know how to unlock him let me know. Thanks very much Share this post Link to post Share on other sites