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:
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
set_pev( ent, pev_angles, m_flAngles );
set_pev( ent, pev_classname, g_szFakeCorpse );
set_pev( ent, pev_framerate, Float:1.0 );
set_pev( ent, pev_sequence, m_iSequence );
set_pev( ent, pev_origin, m_flOrigin );
set_pev( ent, pev_nextthink, m_flNewSetting );
//set_pev( ent, pev_model, m_szModel );
//set_pev( ent, pev_model, engfunc( EngFunc_AllocString, m_szModel ) );
entity_set_model(ent, m_szModel);
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?
__________________