Squirrel/Server/Functions/Utils/InPoly

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Squirrel/Title|InPoly}} ... == Syntax == <code>InPoly(player.Pos.x , player.Pos.y , North West(NW) x , North West(NW) y , North East(NE) x , North East(NE) y , South East(...")
 

Latest revision as of 22:13, 26 November 2015

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

...

[edit] Syntax

  1. InPoly(player.Pos.x , player.Pos.y , North West(NW) x , North West(NW) y , North East(NE) x , North East(NE) y , South East(SE) x , South East(SE) y , South West(SW) x , South West(SW) y)

[edit] Example

  1.  
  2. if (!InPoly(player.Pos.x,player.Pos.y,339.7,-711.8,353.2,-711.8,353.2,-720.7,339.7,-720.7)) MessagePlayer("* You must be in Ammu-Nation [Staunton Island]!",player);
  3.  

[edit] Notes

The function MessagePlayer were used in in this example. More info about them in corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox