Guys, on my RPG System dev adventure I want to give a bonus XP share to all group members playing next to each other.
How its possible to detect if they are next #meters from each other?
Detect if players are next to each other.
Discussion in 'Rust Development' started by TheRotAG, Feb 6, 2015.
-
Use raycasting is one way, grabbing their positions and doing a 2d distance calculation is another, and one more way would to do sphere entity checking.
-
Hope you made your rpg in c# or it Will use à lot of resources
-
I'm using LUA now... surely a lot of resources...
Do u have any good C# Tuto to help me convert it? -
aha well i'm no pro, but having lua, php knowledge helped me a lot to start off in C#
i just watched how others did there C# plugins -
[DOUBLEPOST=1423246205][/DOUBLEPOST]You really think that C# will consume less resources than LUA and others? The code seems to be a little more extensive than the other 3