Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _obAB:GetEntities
- if ${Entities_Iter:First(exists)}
- {
- do
- {
- ;//Does the entity groupID match 1250 (Group: Mobile Tractor Unit) and is it's distance less than or equal to 2500?
- if ${Entities_Iter.Value.GroupID} == 1250 && ${Entities_Iter.Value.Distance} <= 2500
- {
- if ${_sMTUName.NotEqual[${Entities_Iter.Value.Name}]}
- {
- echo Entity[${Entities_Iter.Value}]:SetName["${_sMTUName}"]
- Entity[${Entities_Iter.Value}]:SetName["${_sMTUName}"]
- break
- }
- }
- }
- while ${Entities_Iter:Next(exists)}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement