Vintar
a bit of this and a lot of that (Resident)
 On forum: 08/08/2008
 Message edited by: Vintar 07/02/2012 22:49:07
Messages: 6349
|
hmm now I`m no scripting genius, but maybe something like :
for i = 0, 65535 do
local obj = level.object_by_id(i)
if obj and IsStalker(obj) and obj.clsid and obj:alive() then
local zone = alife():object("restrictor_name")
if zone and zone:inside (obj:position ()) then
return true --or do whatever
end
end
end
the trick is where to put this check, like I said Im no genius so maybe someone else has better ideas or its actually easier to check in sr_idle, whoknows 
VALA: Vicious Attack Llama Apocalypse.
The apocalypse starts soon!
[link]http://www.valagame.com/[/link]
|