i want a capture the flag mission on my map. I got no Items on my map. But Powerups. 2 Teams facing.
I thought about handeling that with a pickup, than add a behavior, and bring unit with that behavior in a region. But i am not sure what to do, to show the "flag" when its taken. and i need to get 2 different flags ... so that 1 flag is only pickable for team 1 and the other for team 2. And when a unit with the behavior dies, or captures the flag on a region, die behavior need to be removed after and pickup respawned. i am not sure how to handle all this stuff, some ideas would be nice! gogo :)
Ok here is how I would do it:
1) Make the flag an item
2) Have the flag item apply a behaviour which triggers actors. The actors will deal with the visual part, i.e. showing a flag or something
3) Set the item to be carryable by allied players only
4) Set the item to drop on death
5) Add a periodic search to the flag: If there are no allied units in a small area around the flag the flag should respawn after a few seconds at the start area. Might be easier to do this with triggers, though. Hmm actually thinking about it.
6) Additionally to 5) the flag should be destroyable by the oposite team, so that they can return it to their base
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi guys,
i want a capture the flag mission on my map. I got no Items on my map. But Powerups. 2 Teams facing. I thought about handeling that with a pickup, than add a behavior, and bring unit with that behavior in a region. But i am not sure what to do, to show the "flag" when its taken. and i need to get 2 different flags ... so that 1 flag is only pickable for team 1 and the other for team 2. And when a unit with the behavior dies, or captures the flag on a region, die behavior need to be removed after and pickup respawned. i am not sure how to handle all this stuff, some ideas would be nice! gogo :)
thx
Ok here is how I would do it: 1) Make the flag an item
2) Have the flag item apply a behaviour which triggers actors. The actors will deal with the visual part, i.e. showing a flag or something
3) Set the item to be carryable by allied players only
4) Set the item to drop on death
5) Add a periodic search to the flag: If there are no allied units in a small area around the flag the flag should respawn after a few seconds at the start area. Might be easier to do this with triggers, though. Hmm actually thinking about it.
6) Additionally to 5) the flag should be destroyable by the oposite team, so that they can return it to their base