UNIT * InstantiateUnit(LEVEL *pLevel, char * ArchetypeName, VECTOR position) { ARCHETYPE * pArchetype = FindArchetypeByName(pTheGame, ArchetypeName); UNIT * pUnit = AddUnit(pLevel, pArchetype, ArchetypeName); pUnit->pInitTransform->Position = position; pUnit->Tag = pUnit->pInitArchetype->Tag; InitializeUnit(pUnit); pUnit->pInitTransform = NULL; pUnit->pInitArchetype = NULL; return pUnit; }
initeuroconv() {InitializeUnit();}