Results 1 to 4 of 4

Thread: Console script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Cmds like map_restart are static and can only be added through engine itself.
    But you can edit libcod and add your own cmds there by using Cmd_AddCommand

    https://github.com/voron00/libcod/bl...r/bsp.cpp#L167


    PHP Code:
    void my_function()
    {
        
    printf("test\n");
    }


    Cmd_AddCommand("my_cmd_name"my_function); 
    sudo apt-get rekt

  2. The Following User Says Thank You to voron00 For This Useful Post:

    kung foo man (27th April 2021)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •