// prc_rest,x2_mod_def_rest ///////////////////////////////////////////////////////////////////// // // This script has been auto-generated by HakInstaller to call // multiple handlers for the onplayerrest event. // ///////////////////////////////////////////////////////////////////// void main() { ExecuteScript("prc_rest", OBJECT_SELF); ExecuteScript("x2_mod_def_rest", OBJECT_SELF); // Find the nearest summoned Efreeti with the specified tag object oSummonedEfreeti = GetNearestObjectByTag("SUM_EFREETI001"); // Check if the summoned Efreeti exists and is valid if (GetIsObjectValid(oSummonedEfreeti)) { // Destroy the summoned Efreeti immediately DestroyObject(oSummonedEfreeti, 0.0f); } }