I've found a workaround for this, I am posting this if anyone else would struggle with this.
https://github.com/szeba99/ZScript-menu ... ngeFromAcs
The workaround is calling a ZScript menu when crossing a line, and this menu can modify the "team" cvar. I didn't find any other solution.
So this is useful in case if you are making a teamplay based gamemode like team deathmatch or something, and you want team selection to happen inside the map, and not in the extremely hidden player setup menu, or you want a respawn lobby without teams etc. Anyways, in my opinion, the engine should let modders to change this cvar, or create an ACS function internally for changing teams.
A better version of this could be a menu that asks if you want to join the team, just I can barely do anything with ZScript menus :"D
Changing teams from ACS in GZDoom? (Solved by myself)
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- GelleSzebasztian
- Posts: 27
- Joined: Fri Mar 08, 2019 5:11 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Contact: