Custom CCMDs without CustomInventory+KEYCONF?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Custom CCMDs without CustomInventory+KEYCONF?

Post by Matt »

Is that possible in ZScript now?


(as opposed to the old method of making a custominventory item that does what you need, giving it to the player automatically at some point, then setting an alias in KEYCONF to "use <item>")


EDIT: After this discussion it seems a combination of console/network events plus an alias {alias friendlycmd "netevent realcmd %1"} would get me what I want here, with the additional advantage of allowing parameters.

Return to “Scripting”