Simple Gameplay idea.. need help :s
by Aaron ward · in Torque Game Engine · 04/07/2008 (9:09 pm) · 0 replies
Hello Everyone,
I have been trying to add in code for my little game, its a team selection menu, and when i click the button for example the (police) team it needs to be able to read a text file from the server with a list of people's nicks that are able to join that team.
if anyone as ever played garrysmod and seen the Roleplay gamemodes then you will get what im trying to do.
is there an easy way to do this? Or a better way... Any help is much appreciated.
this might be a bit more helpful:
I have been trying to add in code for my little game, its a team selection menu, and when i click the button for example the (police) team it needs to be able to read a text file from the server with a list of people's nicks that are able to join that team.
if anyone as ever played garrysmod and seen the Roleplay gamemodes then you will get what im trying to do.
is there an easy way to do this? Or a better way... Any help is much appreciated.
this might be a bit more helpful:
====
semi Pseudo-Code:
Police-list = ("/server/data/playerlist.txt")
JoinTeam.click
if police-list CONTAINS ("mynickname11") then
Player:team(police)
endif
====but i would need to do this in TorqueScript... :s sorry if this is really confusing.