Destroy created objekt...
Ok - have a question and hope anybody can help:1. I write a script to create an objectstring sObject = "plc_object";int nHour = GetTimeHour();if (nHour == 7){CreateObject (OBJECT_TYPE_PLACEABLE, sObject, GetLocation(GetWaypointByTag("wp_object")), TRUE);}2. So far so good. But now in a defined time i want destroy that objectobject oObject = GetObjectByTag("plc_object");int nHour = GetTimeHour();if (nHour == 19){DestroyObject(oObject);}with an existing object it doesnt work, because the most have no tag.when i create my own placeable i can define a tag (f.E.: plc_object).but doesnt work either.
Ok - have a question and hope anybody can help:1. I write a script to create an objectstring sObject = "plc_object";int nHour = GetTimeHour();if (nHour == 7){CreateObject (OBJECT_TYPE_PLACEABLE, sObject, GetLocation(GetWaypointByTag("wp_object")), TRUE);}2. So far so good. But now in a defined time i want destroy that objectobject oObject = GetObjectByTag("plc_object");int nHour = GetTimeHour();if (nHour == 19){DestroyObject(oObject);}with an existing object it doesnt work, because the most have no tag.when i create my own placeable i can define a tag (f.E.: plc_object).but doesnt work either.


