InPoly Problem.

Started by rww, Jul 10, 2015, 12:19 PM

Previous topic - Next topic

rww



I did with this -> http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=405.msg1293#msg1293
But it turned out, that teleport me in some places on center of area.

So how to use InPoly correctly?

This is script:

if (!InPoly(p.Pos.x,p.Pos.y,-1781.23,-85.4932,-1586.86,-85.4932,-1781.23,-305.329,-1586.86,-305.329)) PosDMM4(p);
where:

NW: -1781.23,-85.4932
NE: -1586.86,-85.4932
SW: -1781.23,-305.329
SE: -1586.86,-305.329
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

Thijn

Why not use WorldBounds?

rww

#2
WorldBounds for all, i need for player or add worldbound for player, like a LU ( http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/SetBoundaries )
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

Thijn

In that case try switching SW and SE coords.

rww

Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X