Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Gameplay.EquippableAnimator

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032

    class EquippableAnimator extends Core.Object;

    static simulated function bool isAnimating(Equippable e)
    {
    	return e.IsAnimating();
    }

    static simulated function bool hasEquippableAnim(Equippable e, Name animName)
    {
    	return e.HasAnim(animName);
    }

    static simulated function playEquippableAnim(Equippable e, Name animName, optional float rate, optional float tweenTime, optional int channel)
    {
    	// The native execPlayAnim gives rate a default of 1.0 but we can't do that in script (the default is always 0.0),
    	// so we need to assume that a rate of 0.0 is "invalid" and set it to 1.0
    	if (rate == 0.0)
    		rate = 1.0;

    	if (e.Mesh != None && e.HasAnim(animName))
    		e.PlayAnim(animName, rate, tweenTime, channel);
    }

    static simulated function firstPersonStatus(Equippable e, bool bStatus)
    {

    }

    static simulated function setLocRot(Equippable e, Vector newLocation, Rotator newRotation)
    {

    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 15:53:10.000 - Creation time: st 23.5.2018 00:10:43.321 - Created with UnCodeX