Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2.  
  3. CheckForAISupplyTrux = function()
  4. if Multi0.IsBot then
  5. SupplyTruck = Multi0.GetActorsByType("truk")
  6. for p,trucks in pairs(SupplyTruck) do
  7. if Multi0.IsAlliedWith(Multi1) then
  8. -- now you need to get a target building
  9. PowerPlant = Multi1.GetActorsByType("POWR")
  10. for p,power in pairs(PowerPlant) do -- but not sure if this is the correct way to go you need one seperated actor
  11. trucks.DeliverCash(power)
  12. end
  13. end
  14. end
  15. end
  16. Trigger.AfterDelay(DateTime.Seconds(10), function()
  17. CheckForAISupplyTrux()
  18. end)
  19. end
  20.  
  21. WorldLoaded = function()
  22. Multi0 = Player.GetPlayer("Multi0")
  23. Multi1 = Player.GetPlayer("Multi1")
  24. Multi2 = Player.GetPlayer("Multi2")
  25. Multi3 = Player.GetPlayer("Multi3")
  26. CheckForAISupplyTrux()
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement