IsPlayerInPolygon - Somehow possible?
#1

Hey folks,
I just wanted to know if there is any way to check whether the player is in a polygon. The only way in my mind is to split it in rectangles and use IsPlayerInArea - but this doesn't sound really efficiently.

Anyone?
Reply
#2

Hmm...
I cant think of a way, but, why a polygon?
Reply
#3

I want to define a special place on the map, where players can move...but rectangles are too inexactly for this.
Reply
#4

well, could you create that poligone from multiple small rectangles ?

The use something like

if(IsPlayerInArea(1) || IsPlayerInArea(2) || IsPlayerInArea(3)) ...etc ?
Reply
#5

How about a small circle?
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)