Refactoring With a Struct

So I just wanted to show off my refactor using a struct as a function.

image

I also used it in my GetLineTraceEnd function

I figured there may be other times I may want to get the player’s viewport so I thought the best way to access the two main variables was using a struct.

2 Likes

Very well done with refactoring

Privacy & Terms