onwhatever > Player > setCantDamage [ ]
SetCantDamage??
Why not just setCanDamage?
You start out being able to damage others. My modification is to make it so you can not.Just so yah know, I made this for a City RPG. So the host can add safe zones(bank, police department, etc).
SetCanDamage sounds less odd and fits with other names better. Just negate the boolean.
Isn't there a disable damage event already.
Oh, I don't think that matters.
Adhering to good coding conventions helps keep the game's modding scene from being a loving mess. Do you want the game's modding scene to be a loving mess? I don't think you would want the game's modding scene to be a loving mess. Look around and try to find another function or method with "Cant" in the name of it. Nobody loving does that. You shouldn't either.