You have to put the right ctf entity: in your case gold belongs to allies, so it should be team_CTF_blueflag, in the entity window you should add scriptname like goldCrate or something on your taste, then in your script you can refer to the entity and its events by its scriptname
Code:
goldCrate {
trigger stolen
{...}
trigger returned
{...}
trigger dropped
{...}
}
just like in goldrush script.
In the game_manager trigger event allied_object_stolen is also fired automatically once the objective is stolen by axis. allied_object_returned will run once the objective is returned. axis_object_dropped if the object was dropped by axis. Handling stuff in game_manager is optional.
A little sample map that has all the basic stuff: https://www.dropbox.com/s/uivz0prd10...steal.zip?dl=1.
Bookmarks