void main() { object oPortal; int nObjectType = OBJECT_TYPE_PLACEABLE; string strTemplate = "rebportal"; // creates portal location locLocation= GetLocation(GetObjectByTag("SP_rebportal")); // Find the location of the waypoint int bUseAppearAnimation = TRUE; oPortal = CreateObject(nObjectType, strTemplate, locLocation, bUseAppearAnimation); DestroyObject(oPortal, 300.0); }