Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script Request  () 1 Vote
Re: Script Request [message #330351 is a reply to message #330315] Tue, 13 May 2008 10:20 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
reborn wrote on Tue, 13 May 2008 01:39

Try this
class fogoffChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		Commands->Set_Fog_Enable(0);
                Commands->Set_Rain(0.0f,1.0f,true);
	}
};
ChatCommandRegistrant<fogoffChatCommand> fogoffChatCommandReg("!fogoff",CHATTYPE_ALL,0,GAMEMODE_ALL);



forgot to say also inclusing turning rain off to =/ I THINK ill i ahve to do is trun the true to false on the rain string correct reborn?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Questions on scripting.
Next Topic: Commands
Goto Forum:
  


Current Time: Sun Jan 26 17:51:01 MST 2025

Total time taken to generate the page: 0.01284 seconds