Quote
Command Parameters Data Types Example Usage Description runscript scriptPath String runscript("scripts/mission.py") Executes an external Python script file. addSimulatorScore points Int addSimulatorScore(500) Increments the current Simulator challenge score. getComicMissionVillain None N/A v = getComicMissionVillain() Returns the string name of the mission's boss. getComicMissionHero None N/A h = getComicMissionHero() Returns the required hero for the Comic Mission. setComicMissionHeroPlayer playerID Int setComicMissionHeroPlayer(1) Assigns the required hero to a specific player slot. setSkin actor, skinID String, String setSkin("ironman", "0201") Swaps an actor's visual model/texture set. spawn actor, node String, String spawn("Mephisto", "t_boss_01") Spawns an entity at a map trigger node. spawnEffect fx, node String, String spawnEffect("fx_portal", "t_node") Plays a specific FX at the designated node. spawnInventoryItem item, node String, String spawnInventoryItem("xp_token", "t_1") Drops a physical item at the map location. getZoneVar varName String v = getZoneVar("door_state") Retrieves a variable local to the current zone. setZoneVar varName, val String, Mixed setZoneVar("is_active", 1) Sets a variable local to the current zone. getGameVar varName String v = getGameVar("gv_hero_count") Retrieves a global persistent variable. setGameVar varName, val String, Mixed setGameVar("gv_unlocked", 1) Sets a global persistent variable. setInvulnerable actor, bool String, Bool setInvulnerable("hero1", true) Toggles damage immunity for the actor. setInvisible actor, bool String, Bool setInvisible("hero1", true) Makes an actor invisible to NPCs and players. setNoClip actor, bool String, Bool setNoClip("hero1", true) Disables physical collision for the actor. setNoGravity actor, bool String, Bool setNoGravity("hero1", true) Prevents gravity from affecting the actor. setAIActive actor, bool String, Bool setAIActive("boss", false) Enables or disables the AI for a specific NPC. unlockCharacter heroID String unlockCharacter("SilverSurfer") Adds a hero to the character select screen. lockCharacter heroID, bool String, Bool lockCharacter("Blade", true) Removes or locks a character from selection. setTeamLevel level Int setTeamLevel(99) Overrides the player's team level. addXtremePip amount Int addXtremePip(1) Grants a portion of the Xtreme power meter. playAnim actor, anim String, String playAnim("hero", "ea_idle") Forces the actor to play a specific animation. setAnimSpeed actor, val String, Float setAnimSpeed("hero", 2.0) Multiplies animation playback speed. setScale actor, val String, Float setScale("hero", 1.5) Resizes the actor's model scale. setAlpha actor, val String, Float setAlpha("hero", 0.5) Sets the transparency of the actor model. lockControls bool Bool lockControls(true) Disables all player controller inputs. setHudVisible bool Bool setHudVisible(false) Toggles the visibility of the UI/HUD. showHealthBar actor, bool String, Bool showHealthBar("boss", true) Displays the boss health bar UI. killEntity actor String killEntity("minion_01") Removes an entity from the world immediately. addBolton act, item, bone String, String, String addBolton("hero", "sword", "hand_r") Attaches a model piece to an actor's bone. setGoal actor, node String, String setGoal("npc", "t_destination") Sets an AI navigation destination. actionFigureReward figureID String actionFigureReward("fig_thor") Grants the player a collectible action figure. checkpointSave None N/A checkpointSave() Forces a checkpoint save to the profile. setMusicOverride track String setMusicOverride("boss_fight") Forces a specific audio track to play. setUnderWater bool Bool setUnderWater(true) Enables water physics/visuals for the zone. pause None N/A pause() Pauses the internal game clock/logic. resume None N/A resume() Resumes the internal game clock/logic. getHeroName actor String name = getHeroName("hero1") Returns the string display name of a hero. setHealth actor, val String, Int setHealth("hero1", 100) Sets the health points for an actor. getHealthMax actor String hp = getHealthMax("hero1") Returns the maximum health of an actor. setAggression actor, val String, Int setAggression("npc", 100) Adjusts the NPC's AI aggression level. setAngles actor, x, y, z Str, Float x3 setAngles("hero1", 0, 90, 0) Sets the rotation angles of an actor. setOrigin actor, x, y, z Str, Float x3 setOrigin("hero1", 10, 0, 50) Sets the XYZ position of an actor. setVelocity actor, x, y, z Str, Float x3 setVelocity("hero1", 50, 0, 0) Applies a velocity vector to an actor. showMovies bool Bool showMovies(true) Enables playback of cinematic files. setSpecialMode modeID Int setSpecialMode(1) Sets internal engine state (debug/special).