I have 3 ammo bunkers. Currently, the objective sits in one of them. The entities are called:
warhead_trigger
warhead_cmarker
the CTF_blueflag entity doesn’t have a targetname, but I would call it, warhead_model.
So, how do I make it randomly spawn at one of the three bunkers, is it as easy as (I’m swagging this off the top of my head):
game_manager
{
spawn
{
set globalaccum 1 random 3 //generate a value from 1-3
trigger bunker1check
trigger bunker2check
trigger bunker3check
}
trigger bunker1check
{
globalaccum 1 abort_if_not_equal 1
setstate warhead_trigger1 default
setstate warhead_cmarker1 default
setstate warhead_model1 default
}
... same for bunker2check and bunker3check
... assuming i start up all 3 sets as invisible
//end of game_manager section
}
All three would use the same script
Cheers