Chael Posted January 2, 2011 Report Share Posted January 2, 2011 Basically I've been trying to grab the spawn time setting from the server, but I can't find any way to do it. For instance I tried host.ss_getParam('spawnTime'), but it doesn't seem to return anything. I also need a way to grab the kits (the declarations in the init.con), so something like host.rcon_invoke('gameLogic.getKit ' + str(kitNum)). Does anyone know how to get this info? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Krauzi Posted January 2, 2011 Report Share Posted January 2, 2011 if i remember right, host.rcon_invoke can also return values. so maybe a host.rcon_invoke("sv.spawnTime") will return the respawn time value. Dont have bf2 installed atm but ill try to help you within the next days if i have time. Quote Link to comment Share on other sites More sharing options...
Chael Posted January 2, 2011 Author Report Share Posted January 2, 2011 Thanks Krauzi, but I already tried that and it didn't work I should be on msn a lot over the next few days, so hopefully I'll see you there. Anyone else have an idea? Quote Link to comment Share on other sites More sharing options...
Chael Posted January 9, 2011 Author Report Share Posted January 9, 2011 Does anyone know how to get the spawn time from the server? Please help me out. Quote Link to comment Share on other sites More sharing options...
UberWazuSoldier Posted January 13, 2011 Report Share Posted January 13, 2011 host.rcon_invoke("sv.spawnTime") ought to do it, of course if you want the actual number you can slap that in float() or int(). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.