mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
rename Trigger to Sensor
This commit is contained in:
parent
0a14d6220a
commit
c94c2697e7
11 changed files with 93 additions and 93 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue