Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Create()
- --print();
- end
- local timeTot=0;
- function Update( timePassed )
- if updateTime==nil then
- updateTime = 15 + math.random(1,50);
- end
- if timeTot==nil then timeTot=0; end
- timeTot = timeTot + timePassed;
- if timeTot>=updateTime then
- timeTot=0;
- updateTime=15
- local prisoners = Object.GetNearbyObjects(this, "Prisoner", 10);
- if prisoners~=nil then
- for name,dist in pairs( prisoners ) do
- if name.SnitchTimer~=0 and name.Category~='DeathRow' then
- --Game.DebugOut("Prisoner is snitch");
- Object.SetProperty(name,"Category",4);
- elseif name.Gang.Rank == "Lieutenant" and name.Category~='DeathRow' then
- --Game.DebugOut("Prisoner is a Lieutenant");
- Object.SetProperty(name,"Category",5);
- elseif name.Gang.Rank == "Leader" and name.Category~='DeathRow' then
- --Game.DebugOut("Prisoner is a Leader");
- Object.SetProperty(name,"Category",1);
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement