I have a script that checks for the player's actions.
I want to make every action run only once, but instead it runs twice or more. (depends on what time you set to the timertrigger as we all know)
Something like this:
Code: Select all
public void CheckPlayers(TriggerArgs args)
{
foreach(IPlayer ply in Game.GetPlayers())
{
if(ply.IsWalking && ply.IsBlocking(RunOnce1))
{
ply.Gib();
}
if(ply.IsIdle)
{
RunOnce1.Reset();
}
}
}
If you didn't understand something, PM me or reply to this post.