Topic: How can I code a special move in my script

I'm having problems with animations within the start of a new round (I referenced it in this post: http://www.ufe3d.com/forum/viewtopic.php?id=3909 ). I believe that I can fix this problem by coding a special move within the sourcecode.

I would code it in BattleGUI.cs and here's the example. I just to know how I can do it. Please advise.

       

protected virtual void OnRoundBegin(int roundNumber)
        {
              // Enter special move for player 1 here
              // Enter special move for player 2 here
        }

Share

Thumbs up Thumbs down

Re: How can I code a special move in my script

Hmm, try looking into this code

 UFE.p1ControlsScript.CastMove()

Share

Thumbs up Thumbs down

Re: How can I code a special move in my script

@FreedTerror. That didn't work but this did.

        protected virtual void OnRoundBegin(int roundNumber)
        {
        UFE.p1ControlsScript.KillCurrentMove();
        UFE.p2ControlsScript.KillCurrentMove();    
        }

Thank you for your help. Your guidence helped me figure it out.

Share

Thumbs up Thumbs down