AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting float values from pev() (https://forums.alliedmods.net/showthread.php?t=9192)

XxAvalanchexX 01-09-2005 00:57

Getting float values from pev()
 
For the pev() function, the AMXx funcwiki says "To retrieve a float, pass a single float by reference." The only examples of finding a float value from pev() is when it returns a vector, and in that case it is an array so it needs a float by reference. But if you are retrieving a single-value float, such as pev_nextthink, do you still need to pass a float by reference?

PM 01-09-2005 05:56

Why not use the entvars functions of the engine module? (pev : pointer (to) ent vars).

Anyway, from the description you provided, you should pass a normal float, it will be passed by reference automatically if it's a variable argument list.


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

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