Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- Objects
- Placeables
- Player
- Shop
- Sounds
- Specializations
- Triggers
- Utils
- Vehicles
- Weather
Engine v1.7.1.0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- XML
- general
Foundation Reference
AccessHandler
DescriptionDetermines if a player has access to an objectFunctions
canFarmAccess
DescriptionDetermine if the currrent player can access given objectDefinition
canFarmAccess(table object, integer farmId, boolean [optional])Arguments
table | object | |
integer | farmId | farmId to check with (not NOBODY) |
boolean | [optional] | Allow spectator farm when source and target farms are equal (0==0) |
canFarmAccessLand
DescriptionGet whether given farm can access the land indicated by the (x,z) terrain location.Definition
canFarmAccessLand()
canFarmAccessOtherId
DescriptionGet whether given farm can access an object with given farm idDefinition
canFarmAccessOtherId(farmId number, objctFarmId number)Arguments
farmId | number | Farm to test access for |
objctFarmId | number | FarmId of the object to test access against |
canPlayerAccess
DescriptionDetermine if the currrent player can access given objectDefinition
canPlayerAccess(table object, table player)Arguments
table | object | |
table | player | optional player |