Home   Help Search Login Register  

Author Topic: Switchmove last only a second  (Read 1060 times)

0 Members and 1 Guest are viewing this topic.

cirkut5732

  • Guest
Switchmove last only a second
« on: 17 Jul 2005, 00:05:13 »
hey guys i need a loop for the FXexecution animation where the guy gets down on his knees with his hands behind his back, but i want him to stay on his knees but he immediately stands back up, Ive tried one loop script but he kept repeating the animation over and over and ive tried a disableAI "move" command to with no luck
Anyone know a good loop script for this?
Thanks

Dane

  • Guest
Re:Switchmove last only a second
« Reply #1 on: 17 Jul 2005, 11:39:17 »
have you tried the command unit stop true?

If that doesn't work try this:

#loop
unit switchmove "moveYouWant"
~0.01
goto "loop"

But it's not advised to use many of such fast loops during game, that will cause lag.

edit. Doh! ::) like you said you are looping an animation, that won't work in a loop because the unit will just keep playing the animation.

You need the switchmove loop after the animation have finished.
« Last Edit: 17 Jul 2005, 11:56:35 by Dane »

Offline Blanco

  • Former Staff
  • ****
Re:Switchmove last only a second
« Reply #2 on: 17 Jul 2005, 17:33:09 »
I've answered this one yesterday already in the general editing board, but it seems that you don't believe me...

The solution is >>HERE<<
Search or search or search before you ask.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Switchmove last only a second
« Reply #3 on: 17 Jul 2005, 23:46:46 »
different person blanco, you should've just yelled at him for not using the search button ;D

maccy's right, the same topics do come up again at the same times  ;)

cirkut5732

  • Guest
Re:Switchmove last only a second
« Reply #4 on: 18 Jul 2005, 23:35:24 »
Blanco in the link you directed me to

unit switchmove "FXexecution
~1.8 (or something)
unit playmove "FXexecutiondead"

my problem is I dont want him to fall over dead I want him to stay on his knees basically forever
if i put
unit switchmove "FXexecution"
~10000

will that make the loon stay in execution pose for 10,000 seconds?

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Switchmove last only a second
« Reply #5 on: 18 Jul 2005, 23:36:42 »
uh, no

that will put him in the animation, and then the script will do nothing for 10000 seconds

Offline Blanco

  • Former Staff
  • ****
Re:Switchmove last only a second
« Reply #6 on: 19 Jul 2005, 01:21:51 »
Use
Code: [Select]
unit switchmove "FXexecution"
~1.8
unit playmove "FXexecutiondead"

...and he will stay on his knees.
I have no explanation for this, it's just something I've found  by coincidence.
Try it and you will see.



« Last Edit: 19 Jul 2005, 02:16:41 by Blanco »
Search or search or search before you ask.

cirkut5732

  • Guest
Re:Switchmove last only a second
« Reply #7 on: 19 Jul 2005, 23:15:54 »
Your right Blanco, I too have no explanation but it does work!!!!
Now I have another question for ya

Will that loop work with this...

loon switchmove "FXexecutiondead"
~1.8
loon playmove "FXexecutiondead"

basically I have decided to kill the loon and after completing the execution dead animation he stands back up

You think this will work?

cirkut5732

  • Guest
Re:Switchmove last only a second
« Reply #8 on: 20 Jul 2005, 00:28:03 »
Woops sorry Blanco I forgot to say THANK YOU!!!!

Just so you know when my campaign is done you will be #2 in my list of credits for helping make my campaign possible, Only Plank has helped me more than you. I greatly appreciate all your help and future help!!!!

Offline Blanco

  • Former Staff
  • ****
Re:Switchmove last only a second
« Reply #9 on: 20 Jul 2005, 00:44:26 »
When you want him executed use this :

Code: [Select]
unit switchmove "fxexecution"
~1.8
unit playmove "fxexecutiondead"
@!alive unit
unit switchmove "handguncrouchdying"
exit

He will sit down on his knees until you shoot him.
He will fall backwards like he's executed from the front (in his forehead)

Code: [Select]
unit switchmove "fxexecution"
~1.8
unit playmove "fxexecutiondead"
@!alive unit
unit switchmove "fxexecutiondead"
~0.8
unit switchmove "civildead"

The same script but now he's is executed from the rear, a neckshot, so he's falling forward.
I've used "fxexecutiondead" again, but followed by a pernament deadanimation like "civildead", so the unit won't stand up anymore.

I've used these in an intro, so they are tested.
Maybe I put this in the pending board one day, cos this question keeps popin' up.



 
« Last Edit: 20 Jul 2005, 00:51:30 by Blanco »
Search or search or search before you ask.

cirkut5732

  • Guest
Re:Switchmove last only a second
« Reply #10 on: 20 Jul 2005, 00:51:24 »
Great!! I never knew of the civildead animation!! Thanks again Im gonna go for the rear shot