Download
License: WTFPL
Dependencies: None
Download Latest
... view it on Github
USAGE
You need to define areas.
- Code: Select all
{
type="box", -- box or radius area types
location = {x=-30000,y=100,z=-30000},
location2 = {x=30000,y=30000,z=30000},
actions = {
on_enter = {
grant = {"fly"}
},
on_leave = {
take = {"fly"}
}
},
}
If player enters the area (is less than 10 metres away from {0,100,0}), "fly" is granted.
If player leaves the area (is more than 10 metres away from {0,100,0}),"fly" is taken away.