• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[AI] What does this code mean? what do these functions do?

Status
Not open for further replies.
Level 16
Joined
May 2, 2011
Messages
1,345
Hello,

what does call cheats exactly do? I havent seen any reference for it in Common.ai :|

Here is the code

//============================================================================
// Human 04 -- orange player -- AI Script
//============================================================================

globals
player user = Player(1)
endglobals

function do_cheats takes nothing returns nothing
call Cheat("showmap")
call Cheat("av")
call Cheat("dg")
call Cheat("warnings")
call Cheat("viewres")
// call Cheat("superspeed")
set debug_fast_attacks = true
endfunction
 
Status
Not open for further replies.
Top