View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-25-2021 , 14:33   Re: Change boolean value on entity?
Reply With Quote #2

Quote:
Originally Posted by Mandrew View Post
Hello. I am rather amateurish with sourcemod. However, I am able to change an antlions health using:
Code:
SetEntProp(ent, Prop_Data, "m_iHealth", 500);
But, I cannot do this with a certain bool value named "IsAllied". (Check link below)

https://github.com/ValveSoftware/sou...lion.cpp#L3814

Is there a way to force the value to be 1 despite it checking for globals?
I find it hard to believe both m_iHealth and "IsAllied" are meant to be Prop_Data. Can you try Prop_Send?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline