View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-21-2018 , 10:48   Re: Hide custom entity, Game not loading functions first time, Entity ID problems
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
3. I'm not sure I see something wrong. The forward can be called for other weaponboxs too, not only the one you created. Explain better or provide more code. 113 is simply another entity.
So here's my case:
- I create a weaponbox entity, and I want it to glow for example GREEN (value=1), also set pev_iuser2 value to GREEN so we can retrieve what color we set later on.

- So now I want weaponboxes to keep that glow even when a player picks it up and drops it, so I hook FM_SetModel and retrieve pev_iuser2, get the color that we set before on the weaponbox and set it again. But unfortunately none of the IDs in FM_SetModel match the IDs of the weaponboxes that I create, as you can see in the debug log.

EDIT: FM_SetModel apparently isn't the right event to do this, but what else can I use?
__________________

Last edited by edon1337; 07-30-2018 at 18:00.
edon1337 is offline