Forum Discussion

Santoruga's avatar
7 years ago

Getting loot script

I am trying to fix a script I used and it is missing loot data from base or camp.

Currently, it sets the camp/base object using coordinate:
var CampBase = world.GetObjectFromPosition(scanX, scanY);

I want to check the loot from that campBase and not sure what API statement to use

Alternatively I can use this API to check the loot:
var loot = ClientLib.API.Battleground.GetInstance().GetLootFromCurrentCity();
But I don't know how to set the CurrentCity instance to the selected CampBase


Any help is appreciated.
No RepliesBe the first to reply

About Tiberium Alliances Technical Issues

Having problems running the game or a script? Get help with Command and Conquer: Tiberium Alliances with the community!1,628 PostsLatest Activity: 3 hours ago