Hi Folks,
I'm getting the below error:
PHP Code:
L 04/26/2019 - 15:28:04: [SM] Exception reported: Property "m_vecOrigin" not found (entity 107/ins_ragdoll)
L 04/26/2019 - 15:28:04: [SM] Blaming: ozrespawn4.3.smx
L 04/26/2019 - 15:28:04: [SM] Call stack trace:
L 04/26/2019 - 15:28:04: [SM] [0] GetEntPropVector
L 04/26/2019 - 15:28:04: [SM] [1] Line 6026, D:\Libraries\Insurgency Development\Sourcemod\WIP\scripting\ozrespawn4.3.sp::HealthkitGroundCheckTimer
The function is below:
PHP Code:
Action HealthkitGroundCheckTimer(Handle timer, any entity)
{
if (entity > MaxClients && IsValidEntity(entity))
{
float fGameTime = GetGameTime();
if (fGameTime-g_fTimeCheck[entity] >= 1.0)
{
float fOrigin[3];
GetEntPropVector(entity, Prop_Send, "m_vecOrigin", fOrigin);
//int iRoundHeight = RoundFloat(fOrigin[2]);
int iRoundHeight = RoundFloat(fOrigin[2]);
if (iRoundHeight == g_iTimeCheckHeight[entity])
{
g_fTimeCheck[entity] = GetGameTime();
SDKUnhook(entity, SDKHook_VPhysicsUpdate, HealthkitGroundCheck);
SDKHook(entity, SDKHook_VPhysicsUpdate, OnEntityPhysicsUpdate);
}
}
}
}
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.