playerPawn vs playerPawn.Value, etc
WeirdPhrog opened this issue · comments
Weird Phrog commented
What's the difference between playerPawn and playerPawn.Value? weapon and weapon.Value? etc. What should I work with and when? What should I check for null and IsValid? Where can I read about this?
Yarukon commented
- e.g. playerPawn is the handler of the entity, playerPawn.Value is the actual entity
- playerPawn.Value after check valid
- whenever you wanna change value or use function on the entity, check with != null && IsValid (not 100% accurate)
- docs.cssharp.dev
Weird Phrog commented
Should I also check handler of the entity for valid?