Calling Console Commands From SDK
From Dark Wiki
originally written by Ishtvan (original Forum Post: http://modetwo.net/darkmod/index.php?showtopic=3719)
This is an example of how you would call a console command within the SDK:
/*
================
idTarget_SessionCommand::Event_Activate
================
*/
void idTarget_SessionCommand::Event_Activate( idEntity *activator ) {
gameLocal.sessionCommand = spawnArgs.GetString( "command" );
}
Categories: Coding | SDK
