Post: Team count
01-17-2016, 10:37 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hey - how can I get the amount of players on a team?

I have tried level.teamCount["axis"] but Im not convinced it works...I found it somewhere. I put a iprintln("Success") to make sure it works, then I tried iprintln(self.pers["team"]) which returned the team name.

But then I tried iprintln(level.teamCount["axis"]) and iprintln(level.teamCount["allies"]) and it didn't return anything.

    
AllFrozenAxis()
{
if(level.AxisFrozen == level.teamCount["axis"])
return true;
else
return false;
}


I am trying to get axisfrozen (which increases/decreases with friendly/enemy attacks) to match the team player count so that the game ends when all the team is frozen
(adsbygoogle = window.adsbygoogle || []).push({});
01-22-2016, 11:54 AM #20
Procyon
Gym leader
Originally posted by seanhellen View Post
Brilliant - works perfectly. thanks a lot for your help jwm. Really appreciated. Now all I gotta do is put instructions in and its just about done, but thats easy...even for me haha Happy

1 last very random one - can you freeze certain controls or is it just everything? Just think it would be good to keep right stick active to look around and see whats going on lol


self freezecontrolsallowlook(true)
01-22-2016, 11:55 AM #21
Originally posted by seanhellen View Post
Brilliant - works perfectly. thanks a lot for your help jwm. Really appreciated. Now all I gotta do is put instructions in and its just about done, but thats easy...even for me haha Happy

1 last very random one - can you freeze certain controls or is it just everything? Just think it would be good to keep right stick active to look around and see whats going on lol


self freezecontrolsallowlook(true);
01-22-2016, 03:07 PM #22
seanhellen
Are you high?
Great. Thanks for all your help guys. Will have a play and possibly release the gm soon :yes:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo