Hi guys, is there any way to tell if I'm near an object on the client side
I saw these functions but I do not know if you can
Property Type (read-only)
Type: int
The type of this entity, always OBJ_BUILDING.
Property ModelIndex (read-only)
Type: int
Property Position (read-only)
Type: Vector
1. Write a distance function using the Pythagorean theorem.
2. Compare World.FindLocalPlayer().Position with object.Position.
Well if you shoot an object it may be used to get model ID (useful for map editing/debugging). No any more cases to using that. Client side has no functions to do what you want (I hope - yet). So currently you need to transfer tons of data from/to server to make clientside powerful.
Quote from: EK.IceFlake on Mar 17, 2017, 04:02 AM1. Write a distance function using the Pythagorean theorem.
2. Compare World.FindLocalPlayer().Position with object.Position.
thanks bro
Quote from: vito on Mar 17, 2017, 05:54 AMWell if you shoot an object it may be used to get model ID (useful for map editing/debugging). No any more cases to using that. Client side has no functions to do what you want (I hope - yet). So currently you need to transfer tons of data from/to server to make clientside powerful.
Not only I need is what of object.pos and I will try to do what I think to see rsi me works
Quote from: EK.IceFlake on Mar 17, 2017, 04:02 AM1. Write a distance function using the Pythagorean theorem.
2. Compare World.FindLocalPlayer().Position with object.Position.
Gg I do not know how to identify an object from client-side and how the distance could give me an example
well It's not possible to get object ID in client side, only model ID and only via shooting (as i know)
Quote from: vito on Mar 17, 2017, 05:51 PMwell It's not possible to get object ID in client side, only model ID and only via shooting (as i know)
ok thanks bro
Quote from: vito on Mar 17, 2017, 05:51 PMwell It's not possible to get object ID in client side, only model ID and only via shooting (as i know)
Or set as constant const table = "500";
Oks No xD