InPoly

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

...

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)

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.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox