Basically the flag would already be owned by one team but when it gets captured by the enemy team ownership changes and so do their spawn points. For example, if the flag was in a fort and a raider got in and captured the flag they and their whole team would spawn in that fort if they respawned while the other team would spawn elsewhere and have to recapture it to spawn back.
#How would I go about making a 2 way capture the flag system.
1 messages · Page 1 of 1 (latest)
I've got a whole script of what I've tried to do but it involves the flag raising/lowering and it didn't work so I don't know.
when i did this for my game it involved using a lot of systems i had already set up, so my method needed a lot of groundwork but turned out easy once that was all laid out
since you're only doing 2 teams it's a lot simpler
but you could track captureprogress and teamowned as variables to determine who owns the flag and how captured it is
then i would just set the spawn points to the team that owns the flag when ownedby changes
i got a 3rd team tho
yeah in that case it could be harder, depends if it's ffa
but its like a civ team so i dont want it to be able to cap
ok yeah so just don't allow them
like in the code where it starts to capture just guard clause it by checking if their team is civilian
ight
is this for a clan game
nahh its for this military game
also im new to scripting so idk how to do allat 🙁
there are a couple different ways
i used numbervalues just cuz i like the physical aspect to them but you could track it in a script too
so if you had a model named capturepoint or whatever
then had a folder named values in it that contained the values you need to track
or you could just use attributes it's really up to you
mk
and use getpropertychangedsignal on the teamowned variable to change spawns
hmmmmmmmm