AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved OnPlayerRunCmd() still triggered whether or not client pressed button (https://forums.alliedmods.net/showthread.php?t=333607)

little_froy 07-24-2021 22:00

OnPlayerRunCmd() still triggered whether or not client pressed button
 
in l4d2, is it normal of the API, or just a special case of l4d2?
-----------------------------------------------------------------------
test in team fortress 2, make sure it triggers every tick.

SpirT 07-29-2021 10:58

Re: OnPlayerRunCmd() still triggered whether or not client pressed button
 
Hey! Try using OnClientCommand() instead

Psyk0tik 07-29-2021 16:04

Re: OnPlayerRunCmd() still triggered whether or not client pressed button
 
Quote:

Originally Posted by SpirT (Post 2753993)
Hey! Try using OnClientCommand() instead

That has nothing to do with his question. He’s asking if it’s normal for OnPlayerRunCmd() to keep firing even when clients aren’t pressing anything.

The answer is yes.

SpirT 07-30-2021 06:15

Re: OnPlayerRunCmd() still triggered whether or not client pressed button
 
Quote:

Originally Posted by Crasher_3637 (Post 2754033)
That has nothing to do with his question. He’s asking if it’s normal for OnPlayerRunCmd() to keep firing even when clients aren’t pressing anything.

The answer is yes.

Ohh my bad, as I read the title, I thought the problem was that OnPlayerRunCmd was being triggered always.


All times are GMT -4. The time now is 19:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.