[Documentation] Tutorial on weapons and hit command does not remove hit command from self as described in tutorial
BurrowsForge opened this issue · comments
Existing page / new
Documentation issue
During the tutorial you are asked to remove a command from yourself with the command:
py self.cmdset.remove("commands.mycommands.MyCmdSet")
I tried this a few times, tried restarting the server and I could not get the command to be removed from myself. My files are named the same and I have the class MyCmdSet also named correctly.
I was able to add the hit command to the sword using:
py self.search("sword").cmdset.add("commands.mycommands.MyCmdSet", persistent=True)
so the location seems to be correct. I don't know why it doesn't work on removing commands from me.
Suggested change
The cmdset is set directly on the character, so one needs to remove it from the CharacterCmdSet in-code. Fixed it now.