Drakath Posted December 14, 2014 Share Posted December 14, 2014 Is it possible to use isLineOfSightClear if obstacle is right in front of ped (0 meters)? If yes then how? Link to comment
MTA Team 0xCiBeR Posted December 14, 2014 MTA Team Share Posted December 14, 2014 Not sure what you mean there, but you could use the ignoredElement variable to ignore the obstacle in front of you. bool isLineOfSightClear ( float startX, float startY, float startZ, float endX, float endY, float endZ, [ bool checkBuildings = true, bool checkVehicles = true, bool checkPeds = true, bool checkObjects = true, bool checkDummies = true, bool seeThroughStuff = false, bool ignoreSomeObjectsForCamera = false, element ignoredElement = nil ] ) Also, you can check distance with getDistanceBetweenPoints3D Link to comment
Drakath Posted December 14, 2014 Author Share Posted December 14, 2014 I'll pm you my script and explain it better, alright? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now