Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CheckForAISupplyTrux = function()
- if Multi0.IsBot then
- SupplyTruck = Multi0.GetActorsByType("truk")
- for p,trucks in pairs(SupplyTruck) do
- if Multi0.IsAlliedWith(Multi1) then
- -- now you need to get a target building
- PowerPlant = Multi1.GetActorsByType("POWR")
- for p,power in pairs(PowerPlant) do -- but not sure if this is the correct way to go you need one seperated actor
- trucks.DeliverCash(power)
- end
- end
- end
- end
- Trigger.AfterDelay(DateTime.Seconds(10), function()
- CheckForAISupplyTrux()
- end)
- end
- WorldLoaded = function()
- Multi0 = Player.GetPlayer("Multi0")
- Multi1 = Player.GetPlayer("Multi1")
- Multi2 = Player.GetPlayer("Multi2")
- Multi3 = Player.GetPlayer("Multi3")
- CheckForAISupplyTrux()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement