rename Trigger to Sensor
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"drop"
|
||||
],
|
||||
"hitbox": [0.2, 0.125, 0.2],
|
||||
"triggers": [
|
||||
"sensors": [
|
||||
["aabb", -0.2, -0.2, -0.2, 0.2, 0.2, 0.2],
|
||||
["radius", 1.6]
|
||||
],
|
||||
|
||||
@@ -71,7 +71,7 @@ function on_fall()
|
||||
inair = true
|
||||
end
|
||||
|
||||
function on_trigger_enter(index, oid)
|
||||
function on_sensor_enter(index, oid)
|
||||
local playerentity = player.get_entity(hud.get_player()):get_uid()
|
||||
if ready and oid == playerentity and index == 0 then
|
||||
entity:despawn()
|
||||
@@ -83,7 +83,7 @@ function on_trigger_enter(index, oid)
|
||||
end
|
||||
end
|
||||
|
||||
function on_trigger_exit(index, oid)
|
||||
function on_sensor_exit(index, oid)
|
||||
if oid == target and index == 1 then
|
||||
target = -1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user