• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,351
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