Home   Help Search Login Register  

Author Topic: Unit Frozen after switchMove "FXStandFromTable"  (Read 1282 times)

0 Members and 1 Guest are viewing this topic.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Unit Frozen after switchMove "FXStandFromTable"
« 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.
« Last Edit: 10 Feb 2005, 07:29:15 by Raptorsaurus »

CrashnBurn

  • Guest
Re:Unit Frozen after switchMove "FXStandFromTable"
« Reply #1 on: 10 Feb 2005, 09:05:30 »
try finishing with-
unitname switchmove "StandToCombat"

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Unit Frozen after switchMove "FXStandFromTable"
« Reply #2 on: 10 Feb 2005, 10:54:14 »
Switchmoves are a bit funny sometimes and the loons do get stuck at the end of them.   You just need to experiment.  
Plenty of reviewed ArmA missions for you to play

Offline Pilot

  • Contributing Member
  • **
Re:Unit Frozen after switchMove "FXStandFromTable"
« Reply #3 on: 11 Feb 2005, 03:43:50 »
Quote
try finishing with-
unitname switchmove "StandToCombat"

It that doesn't work, try:
Code: [Select]
unitname switchmove "NULL"or
Code: [Select]
unitname switchmove ""

Offline JFRyan

  • Members
  • *
Re:Unit Frozen after switchMove "FXStandFromTable"
« Reply #4 on: 22 Mar 2007, 19:30:48 »
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:
« Last Edit: 22 Mar 2007, 19:40:10 by bedges »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Unit Frozen after switchMove "FXStandFromTable"
« Reply #5 on: 22 Mar 2007, 19:42:45 »
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.