debug
This commit is contained in:
@@ -28,6 +28,8 @@ namespace ReallifeGamemode.Server.Util
|
|||||||
string animationName = animations.ElementAt(0);
|
string animationName = animations.ElementAt(0);
|
||||||
List<string> nextAnimations = animations.Skip(1).ToList();
|
List<string> nextAnimations = animations.Skip(1).ToList();
|
||||||
player.SyncAnimation(animationName);
|
player.SyncAnimation(animationName);
|
||||||
|
|
||||||
|
if (nextAnimations.Count != 0)
|
||||||
player.TriggerEvent("SERVER:QueueAnimations", nextAnimations.ToArray(), animationName);
|
player.TriggerEvent("SERVER:QueueAnimations", nextAnimations.ToArray(), animationName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,6 +64,7 @@ namespace ReallifeGamemode.Server.Util
|
|||||||
[RemoteEvent("CLIENT:AnimPairTransition")]
|
[RemoteEvent("CLIENT:AnimPairTransition")]
|
||||||
public void AnimPairTransition(Player player, string[] transitionTo)
|
public void AnimPairTransition(Player player, string[] transitionTo)
|
||||||
{
|
{
|
||||||
|
player.SendChatMessage(transitionTo.ToString());
|
||||||
player.SyncAnimation(transitionTo.ToList<string>());
|
player.SyncAnimation(transitionTo.ToList<string>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user