fixes
parent
2241c8b6d5
commit
81f8fb916b
6
init.lua
6
init.lua
|
@ -82,6 +82,12 @@ minetest.register_entity("ptol:freeze", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_activate = function(self, staticdata, dtime_s) --on_activate, required
|
||||||
|
if dtime_s > 0 then --loaded, nor new
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
set_frozen_player = function(self, player)
|
set_frozen_player = function(self, player)
|
||||||
self.pname = player:get_player_name()
|
self.pname = player:get_player_name()
|
||||||
player:set_attach(self.object, "", {x = 0, y = 0, z = 0 }, { x = 0, y = 0, z = 0 })
|
player:set_attach(self.object, "", {x = 0, y = 0, z = 0 }, { x = 0, y = 0, z = 0 })
|
||||||
|
|
|
@ -5,7 +5,7 @@ world_center=(0,0,0)
|
||||||
shape=box
|
shape=box
|
||||||
#The radius between spheres or boxes
|
#The radius between spheres or boxes
|
||||||
##for a box the "radius" is edge/2
|
##for a box the "radius" is edge/2
|
||||||
radius=256
|
radius=100
|
||||||
#Timing to check if a player is in his allowed area
|
#Timing to check if a player is in his allowed area
|
||||||
time=1
|
time=1
|
||||||
#The angle for a player return to his area,
|
#The angle for a player return to his area,
|
||||||
|
|
Loading…
Reference in New Issue