OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raptorsaurus on 10 Feb 2005, 07:27:12
-
I have a unit that I make sit at a chair in front of a table using: switchmove "FXstandToTable". Then I have him do some figitting at the table using: switchMove "FXSitHandsOnTable", "FXSitLeftHandDown", "FXSitRightHandDown". I do these in a random sequence with a randome delay between each switchmove. It works fine and looks great, the problem is after he is sitting, I then have him get up (which he does), but then I want him to return to normal AI behaviour and follow his waypoints. But NO, he stands up moves away from the table (which I also do using switchmove -because I thought the table was what was making him get "stuck"), and then he just stands there and will not move. Even when I put an enemy in front of him he just stands there frozen! So, how can I wake him up? I know it is not a problem with "stacking" switchMoves because even if I take out the loop and just have him sit at the table, then stand from the table, then move to the side of the table (no loop) he still seems to be frozen (after he completes the switchMoves). I have used switchMove before without this happening, but this is the first time I have used the "FX-table-related" switchMoves. Is there something about those that removes the AI abiltiy to move, target, etc? Oh, also I am finishing the script with _unit switchMove "" and for good measure I put _unit switchMove "null" also. He does go to a normal stance after the script ends, but other than that he does nothing else. Any help is much appreciatied.
-
try finishing with-
unitname switchmove "StandToCombat"
-
Switchmoves are a bit funny sometimes and the loons do get stuck at the end of them. You just need to experiment.
-
try finishing with-
unitname switchmove "StandToCombat"
It that doesn't work, try:
unitname switchmove "NULL"or
unitname switchmove ""
-
Hi
Im trying to make a unit sit on a chair and after a couple of second sto stand up but he is frozen and he can't move whatever I do nothing happens.
I tried the suggentions but it dind't worked
I really need help with this because Im going crazy!!!! :dunno:
-
please do not quote the post previous to your own.
if all else fails, delete the unit and create another with exactly the same characteristics as the first (getdir, getpos, setbehaviour, etc.) in most cases this looks instantaneous and solves the problem.