Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 _obAB:GetEntities
  2.            
  3.         if ${Entities_Iter:First(exists)}
  4.         {
  5.             do
  6.             {              
  7.                 ;//Does the entity groupID match 1250 (Group: Mobile Tractor Unit) and is it's distance less than or equal to 2500?
  8.                
  9.                 if ${Entities_Iter.Value.GroupID} == 1250 && ${Entities_Iter.Value.Distance} <= 2500
  10.                 {                      
  11.                     if ${_sMTUName.NotEqual[${Entities_Iter.Value.Name}]}
  12.                     {
  13.                         echo Entity[${Entities_Iter.Value}]:SetName["${_sMTUName}"]
  14.                         Entity[${Entities_Iter.Value}]:SetName["${_sMTUName}"]
  15.                         break
  16.                     }
  17.                 }  
  18.             }
  19.             while ${Entities_Iter:Next(exists)}
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement