View Single Post
Author Message
ozrich
AlliedModders Donor
Join Date: Oct 2015
Old 04-26-2019 , 01:34   Property not found
Reply With Quote #1

Hi Folks,

I'm getting the below error:

PHP Code:
L 04/26/2019 15:28:04: [SMException reportedProperty "m_vecOrigin" not found (entity 107/ins_ragdoll)
L 04/26/2019 15:28:04: [SMBlamingozrespawn4.3.smx
L 04
/26/2019 15:28:04: [SMCall stack trace:
L 04/26/2019 15:28:04: [SM]   [0GetEntPropVector
L 04
/26/2019 15:28:04: [SM]   [1Line 6026D:\Libraries\Insurgency Development\Sourcemod\WIP\scripting\ozrespawn4.3.sp::HealthkitGroundCheckTimer 
The function is below:

PHP Code:
Action HealthkitGroundCheckTimer(Handle timerany entity)
{
    if (
entity MaxClients && IsValidEntity(entity))
    {
        
float fGameTime GetGameTime();
        if (
fGameTime-g_fTimeCheck[entity] >= 1.0)
        {
            
float fOrigin[3];
            
GetEntPropVector(entityProp_Send"m_vecOrigin"fOrigin);
            
//int iRoundHeight = RoundFloat(fOrigin[2]);
            
int iRoundHeight RoundFloat(fOrigin[2]);
            if (
iRoundHeight == g_iTimeCheckHeight[entity])
            {
                
g_fTimeCheck[entity] = GetGameTime();
                
SDKUnhook(entitySDKHook_VPhysicsUpdateHealthkitGroundCheck);
                
SDKHook(entitySDKHook_VPhysicsUpdateOnEntityPhysicsUpdate);
            }
        }
    }

Why would I be getting this? I've compared it to other code where I'm using m_vecOrigin. I've attached the source if that helps.
Attached Files
File Type: sp Get Plugin or Get Source (ozrespawn4.3.sp - 84 views - 221.3 KB)
__________________
ozrich is offline