PDA

View Full Version : How to make custom console command?



Xkower8181
April 28th, 2014, 14:31
I just need custom console command tutorial because this is for making my hat and caps wad very very much better.

Demnyx Onyxfur
April 28th, 2014, 19:37
Like having separate commands for each hat? Sounds like a cool idea, even though I couldn't tell you the first thing about Lua...

Xkower8181
April 28th, 2014, 21:52
..... D'oh!:hmm:

- - - - - - - - - -

Hey i dont need help for custom command making but i need help for other weird thing.

Sky
April 28th, 2014, 22:18
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