Unknown Console Commands - Xcom Enemy

WorldInfo.Game.SetConsole( new(self) class'XComDevConsole' );

Override XComGame ’s console getter:

local XGStrategy strat; strat = XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGame.m_kStrategy; xcom enemy unknown console commands

| Command Syntax | Effect | |---------------|--------| | GiveCash 500 | Adds §500 | | UnlockTech psionics | Instantly research tech by name | | SpawnUnit eChar_Sectoid | Spawns sectoid at cursor (in tactical) | | WinMission | Ends tactical with victory | | ToggleFOW | Toggles fog of war | | SetPerk 41 | Adds "Run & Gun" to selected soldier | | GiveItem plasma_rifle 3 | Adds 3 plasma rifles to inventory | | AdvanceTime 5 | Advances geoscape 5 hours (events trigger) | Step 5 – Hook into Tactical Input Allow commands to target current selected unit:

// Console is active

local XGUnit selected; selected = XComTacticalController(GetALocalPlayerController()).GetSelectedUnit(); if(selected != none) selected.TakeDamage(9999, selected.Location, vect(0,0,0), none, true);

TacticGRI = XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI); if(TacticGRI == none) return; WorldInfo

exec function KillSelected()

if( WorldInfo.Game != None )