Files
sampleproj/Assets/lua/heal_trigger.lua
2026-03-29 13:18:13 +02:00

15 lines
351 B
Lua

-- heal_trigger.lua - Heals player when entering the zone
-- Attach to a PSXTriggerBox near a health pickup
function onTriggerEnter()
Debug.Log("Entered heal zone")
setStatus("Healing!")
applyHeal(50)
Audio.Play("heal", 100, 64)
end
function onTriggerExit()
Debug.Log("Left heal zone")
setStatus("Left the healing area")
end