View Single Post
[email protected]
Junior Member
Join Date: Aug 2013
Old 08-07-2013 , 05:37   Re: Need help with entity editing.
Reply With Quote #4

Thanks for the help guys!

I tried deleteing everything I didn't need, so the FindEntityByClassname is hooked to OnPluginStart. However, for some reason, it does still seem like the entities are not beeing modified.

Here is my code:
Code:
public OnPluginStart()
{
	new ent = FindEntityByClassname(ent, "func_tanktrain");
	new String:classname[32];
	GetEdictClassname(ent, classname, 32);
	DispatchKeyValueFloat(ent, "orientationtype", 0.0);
	
}
I also tried this, but still no luck. Pretty sure it is a Float value.
Code:
public OnPluginStart()
{
	new ent = FindEntityByClassname(ent, "func_tanktrain");
	new String:classname[32];
	GetEdictClassname(ent, classname, 32);
	DispatchKeyValue(ent, "orientationtype", "0");
	
}
Thanks.
aMasheep@gmail.com is offline