Results 1 to 4 of 4

Thread: How to make custom console command?

  1. #1
    Join Date
    April 19th, 2014
    Location
    Poland
    Posts
    211
    Level
    36

    Question How to make custom console command?

    I just need custom console command tutorial because this is for making my hat and caps wad very very much better.
    Amateur of wading,drawing and Match

  2. #2
    Join Date
    December 22nd, 2010
    Posts
    1,192
    Level
    26
    Like having separate commands for each hat? Sounds like a cool idea, even though I couldn't tell you the first thing about Lua...

    Husbando to a special kitty~♥

  3. #3
    Join Date
    April 19th, 2014
    Location
    Poland
    Posts
    211
    Level
    36
    ..... D'oh!

    - - - - - - - - - -

    Hey i dont need help for custom command making but i need help for other weird thing.
    Amateur of wading,drawing and Match

  4. #4
    Join Date
    March 25th, 2010
    Posts
    1,442
    Level
    58
    Code:
    COM_AddCommand("commandhere", function(player) // Adds command.
        if player.mo // This is a nice check to make sure it functions correctly.
            insert function here
        end // Ends the if statement.
    end) // Ends the COM_AddCommand statement.
    Function list (under Base Functions): https://mb.srb2.org/showthread.php?t=37219
    You can also set the function to a player state with player.mo.state=(S_PLAY_STATE), and other criteria as well.

    EDIT: Oh, you don't need help anymore. Leaving the link to your new problem here: http://srb2skybase.org/mb/showthread.php?t=2400
    Quote Originally Posted by SRB2
    <Mystyc Cheez> I ****ING QUIT
    Mystyc Cheez left the game
    <~Sky> Am I too awesome or something?
    <X\Wind> Why is everyone on red...
    <X\Wind> Is Sky that awesome?
    Quote Originally Posted by Steam
    20:48 - Sky: one does not simply ban him
    20:49 - Wind: we must gather the chaos emeralds and blast him

Posting Permissions

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