Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 125 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: how to read clientcvars back in gametype script?
bellers
General Member
Since: Aug 23, 2006
Posts: 2
Last: Aug 27, 2006
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Sunday, Aug. 27, 2006 01:06 am
Hi
could someone please tell me how to read clientcvars back in the gametype gsc files ? .

I have this :
self setClientCvar("playedonce", "done");

but i cant find anyway to read it back from the client ?

tried this:
if(GetCvarInt("playedonce") == "done")
and
if(GetCvar("playedonce") == "done")

but they just seem to be just for reading back from the server

I just want to play a sound once and then set a trigger to not play it again

thx
[sad][sad]
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Aug. 27, 2006 01:11 am
Usually a command has an opposit command, like setClientCvar might have an opposing command like getClientCvar.

Grassy

edited on Aug. 26, 2006 09:13 pm by WHC_Grassy
Share |
bellers
General Member
Since: Aug 23, 2006
Posts: 2
Last: Aug 27, 2006
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Sunday, Aug. 27, 2006 10:43 am
Yes I tried "getClientCvar" but the compiler comes back with "unknown function" :(
Share |
veef
General Member
Since: Apr 25, 2006
Posts: 1258
Last: Aug 29, 2006
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Tuesday, Aug. 29, 2006 10:10 am
You can not get a client cvar only set them.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»