Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kh_nearMaules = [];
- // Run a script thread to check for prop hits on the kh_nearMaules list:
- kh_monitorNearMaules =
- {
- while { true } do
- {
- {
- _x call kh_checkMaule;
- } forEach kh_nearMaules;
- if ((count kh_nearMaules) > 0) then
- {
- sleep 0.1;
- }
- else
- {
- sleep 1;
- };
- };
- };
- [] spawn kh_monitorNearMaules;
- // Update the kh_nearMaules array:
- while { true } do
- {
- kh_nearMaules = player nearEntities ["kh_maule", 1000];
- sleep 5;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement