still not working..
GameObject *Icon = Commands->Create_Object_At_Bone(obj,"Invisible_Object", "C R UPPERARM"); if (stricmp(Commands->Get_Preset_Name(obj),"CnC_Nod_FlameThrower_2SF") == 0) { Commands->Destroy_Object(Icon);
}
else {
Commands->Attach_Script(Icon,"MDB_SSGM_Destroy_When_Object_Destroyed",ToString(Commands->Get_ID(obj)).c_str());
vIconID = Commands->Get_ID(Icon);
Commands->Set_Model(Icon, "p_keycrd_grn");
Commands->Attach_To_Object_Bone(Icon, obj, "C R UPPERARM");
}
Quote: |
The problem is
It may be destroying the new object
but its not getting rid of the one that was already there
|
thats what he stated