Quote:
Originally Posted by HamletEagle
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?
__________________