Works in Engine but not FM?
Why is it that the following works in the Engine module:
Code:
But when I convert it to FM, it does not work: Code:
It simply does not show any entity in the world with FM. I've tried simple set_pev commands instead of SetOrigin and SetModel in the FM part...nothing. The variables being used to set the entity variables are safe and sound as they work fine in engine. They are being retrieved from a message it's hooking (ClCorpse) g_szFakeCorpse is a global entity, "fakecorpse" |
Re: Works in Engine but not FM?
I've tracked it down to the setting of the model. I've tried the following:
set_pev( ent, pev_model, m_szModel ); set_pev( ent, pev_model, engfunc( EngFunc_AllocString, m_szModel ) ); engfunc( EngFunc_SetModel, m_szModel ); engfunc( EngFunc_SetModel, engfunc( EngFunc_AllocString, m_szModel ) ); And still nothing. Basically the way I found it was by using FM for everything but the model - I did the model in engine like listed above and it worked. But I can't set the model in FM - any idea why? Edit: Basically, this works: Code:
But if I comment out the last line, the engine line, and use either of the FM line above it, it does not work. What's going on with this? |
Re: Works in Engine but not FM?
|
Re: Works in Engine but not FM?
It's because you don't specify which entity to set the model for.
|
Re: Works in Engine but not FM?
Perfect. How silly of me. Thank you, you sons of wisdom.
|
| All times are GMT -4. The time now is 22:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.