Raised This Month: $51 Target: $400
 12% 

Property not found


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 85 views - 221.3 KB)
__________________
ozrich is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:46.


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