Quote:
Originally Posted by Powerlord
So, 2.03 didn't fix the problem if my error logs are anything to go by:
Errors you'll see in 2.03:
Code:
L 06/04/2013 - 15:54:47: [SM] Native "SetEntPropString" reported: Property "m_iName" is not a valid string
L 06/04/2013 - 15:54:47: [SM] Displaying call stack trace for plugin "prophunt.smx":
L 06/04/2013 - 15:54:47: [SM] [0] Line 878, D:\tf2server\plugins\prophunt\addons\sourcemod\scripting\prophunt.sp::OnCPMasterSpawned()
I'm going to try something else and hope it works instead. Namely by switching it from a spawn hook to a spawnpost hook and hoping that will let me set the m_iName properly. I also corrected the check for the actual name based on something said in another thread.
|
If you are trying to rename an existing ent, just dispatchkeyvalue, it will work for m_iName, i do it to players all the time to parent crap to them.
But if you are trying to edit it as it is spawning, you have to wait, so just use a 0.0 timer, or like you said, try post.
__________________