-- entity_zone.lua -- Scripted by perelect. 12.12.2015 -- Assign this script to a trigger zone. local entity_number = 0 function entity_zone_init(e) end function entity_zone_main(e) GetEntityInZone(e) -- you need to call this first to populate the 'entityinzone' field. if g_Entity[e]['entityinzone']>0 then entity_number = g_Entity[e]['entityinzone'] end PromptDuration(entity_number,500) end