Home   Help Search Login Register  

Author Topic: Animations and player control  (Read 806 times)

0 Members and 1 Guest are viewing this topic.

Pimmelorus

  • Guest
Animations and player control
« on: 17 Nov 2003, 15:48:27 »
Hi all,

Currently, I am making a script that gives a rearm dialog for ammocrates in multiplayer games. Everything is fine, but what I would like to do is that the player gets into the normal animation that is used in the game for ammocrates (if I am correct is the "TakeFlag" anim). Well, I can now get and KEEP the player character in the "TakeFlag" anim (by putting the playmove in a looping script), but I have troubles now with ending the animation.

If I use -player playMove ""- the player stays in the animation for 10 secs (which is far too long; he should get out immediately), after which the player stands up agian and I can move again.

Well, I want to stop the animation immediately after the dialog is ended

I can issue -player switchMove ""- and this will end the animation immediately. Then something strange happens... The player is unmovable for 10 secs, gets into the "FlagTake" anim. agian and after 10 secs. stands up again and I have control over the player again.

My big question is now: How to immedialtely end an animation AND regain control over the player character?

Any help would be greatly appreciated,

Cya, Pimmelorus [ZEUS]

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:Animations and player control
« Reply #1 on: 25 Nov 2003, 21:48:51 »
You sure you have skimmed through all moves. There's
"CombatToPutDown" that does the same anim but w/o the delay. And it works with playMove.
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.