Forum Thread
  Posts  
Unreal Script Question (Forums : Coding & Scripting : Unreal Script Question) Locked
Thread Options
Feb 27 2013 Anchor

Ok look what ive found from abit of searching it goes like this... I place an animnodeslot(name it fullanimbodyslot) in my animtree cauz it can be called from the script when the binding e.g "X" is pressed when i write

.Bindings=(Name="X",Command="Dash")

in the defaultinput.ini fileThis causes this code to activate

exec function PlayAnimation(){	local YourPawnClass rYourPawnClass;	if( Pawn != none )		rYourPawnClass = YourPawnClass( Pawn );	if( rYourPawnClass.FullBodyAnimSlot != none )	{		rYourPawnClass.FullBodyAnimSlot.PlayCustomAnim( 'Death_Stinger', 1, 1, 1, true );		`log( "Has anim played: " $ rYourPawnClass.FullBodyAnimSlot.bIsPlayingCustomAnim );	}	else		return;}

And with this codes command it searches for the animation "dash" that is linked to the fullanimbodyslot in the animtree and executes the function in the game and that is how to execute a custom anim from pressing the "X" button .... Did I get that right???

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.