Quote: "You could get round this by writing a basic script that uses distance to trigger the event. That way, as long as you place it in the doorway and it is sufficiently small it will not trigger when you go underneath it."
i agree however that gives a spherical result, zones are great because you can customise the area very nicely (not always needed but it's very handy when it is)
i would personally combine the 2 and adjust the script to take the y position into account like so
plrinzone.lua
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Win Zone
function plrinzone_init(e)
end
function plrinzone_main(e)
if g_Entity[e]['plrinzone']==1 then
if g_PlayerPosY - 65 <= g_Entity[e]['y'] and g_PlayerPosY >= g_Entity[e]['y'] + 25 then
PlaySound(e,0)
Destroy(e)
ActivateIfUsed(e)
end
end
end
winzone.lua
function winzone_init(e)
end
function winzone_main(e)
if g_Entity[e]['plrinzone']==1 then
if g_PlayerPosY - 65 <= g_Entity[e]['y'] and g_PlayerPosY >= g_Entity[e]['y'] + 25 then
JumpToLevelIfUsed(e)
end
end
end
i made the range as specific as i could while still allowing you to crouch and trigger the zone
in the video the first 2 zones are at ground height to test normal and crouching and the third is on the roof of the house (pressing enter in editor to snap it to the roof, stretched to cover the entire roof) - it might be a little hard to hear but it triggers when i land.
hopefully it'll help until it gets a real fix
life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11