I'm a little bit rusty on writing oxide plugins but i came back,i'm testing some player position stuff and im getting
Which is strange cause according toCode:Type `UnityEngine.Vector3' does not contain a definition for `Y' and no extension method `Y' of type `Unit yEngine.Vector3' could be found. Are you missing an assembly reference?
Unity - Scripting API: Vector3
the Vector3D has properties X,Y and Z with float type.
Sample code
Any hints on getting the player position and all player connected position?Code:foreach (var target in BasePlayer.activePlayerList.Where(target => target != null && target.transform != null && target.IsConnected)){ float X = target.transform.position.X - player.transform.position.X; float Y = target.transform.position.Y - player.transform.position.Y; float Z = target.transform.position.Z - player.transform.position.Z; }
Solved Type `UnityEngine.Vector3' does not contain a definition for `Y'
Discussion in 'Rust Development' started by .legaCypowers, Feb 8, 2018.
-
Wulf Community Admin
Lowercase x, y, z.
-
My bad, and thank you Wulf, also thank you to leaving the author credits on Everlight, i appreciate it.
Edit:
Now i'm getting that IPlayer don't have a transform member.Last edited by a moderator: Feb 8, 2018 -
Wulf Community Admin
-
Code:BasePlayer me = player.Object as BasePlayer;
-
Wulf Community Admin