How do these things work?
HTML Code:
engfunc(EngFunc_AllocString, "info_target")
HTML Code:
engfunc(EngFunc_CreateNamedEntity, iszInfoTarget)
And I encountered something like this
HTML Code:
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
At first I thought I could replace it with
HTML Code:
create_entity(const szClassname[]);
But that's probably not the right usage
I am posting a snippet of code where it is used
HTML Code:
static iszInfoTarget
if( !iszInfoTarget ) {
iszInfoTarget = engfunc(EngFunc_AllocString, "info_target")
}
new iEnt = engfunc(EngFunc_CreateNamedEntity, iszInfoTarget)
if( iEnt > 0) {
static iszClass = 0
if( !iszClass ) {
iszClass = engfunc(EngFunc_AllocString, PARACHUTE_CLASS)
}