public static void SetScriptId(this GameObject obj, ObjScriptEvent evt, int scriptId) { // See current python obj.scripts var script = obj.GetScript(obj_f.scripts_idx, (int)evt); script.scriptId = scriptId; obj.SetScript(obj_f.scripts_idx, (int)evt, script); }
public static void RemoveScript(this GameObject obj, ObjScriptEvent evt) { obj.SetScriptId(evt, 0); }
public static int GetScriptId(this GameObject obj, ObjScriptEvent evt) { // See current python obj.scripts return(obj.GetScript(obj_f.scripts_idx, (int)evt).scriptId); }
public static int ExecuteObjectScript(this GameObject attachee, GameObject triggerer, ObjScriptEvent scriptEvent) { return(GameSystems.Script.ExecuteObjectScript(triggerer, attachee, scriptEvent)); }