Jump to content

How to make new commands to debug console enabler?


Recommended Posts

create a .ws file in "modMyCommands/content/scripts/local " , in that file create functions like this example:

exec function dosomthing()

{

//put here what you want to do

}

 

now put modMyCommands folder inside your mods folder and that's it.

you can call your command by the function name 'dosomthing'

 

examples from the game's scripts :

 

exec function RestoreStamina( optional val : int )
{
if( val == 0 )
{
val = 1000;
}
thePlayer.GainStat( BCS_Stamina, val );
}
exec function addexp( amount : int )
{
if( amount > 0 )
{
GetWitcherPlayer().AddPoints(EExperiencePoint, amount, false );
}
}
see content0/scripts/game/player/playerCheats.ws for example.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...