Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !fds (how to load raw text files like drop scripts?)
Re: !fds [message #467419 is a reply to message #467418] Wed, 16 May 2012 22:17 Go to previous messageGo to previous message
YazooGang is currently offline  YazooGang
Messages: 742
Registered: August 2008
Location: US
Karma:
Colonel
class cinematicChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {	
		GameObject *obj = Get_GameObj(ID);
		Vector3 position;
		position.Z += 0;
		position = Commands->Get_Position(obj);
		GameObject *X = Commands->Create_Object("Invisible_Object", position);
		Commands->Disable_Physical_Collisions(X);
		Commands->Attach_Script(X,"Test_Cinematic",Text[1].c_str());
	}
};
ChatCommandRegistrant<cinematicChatCommand> cinematicChatCommandReg("!cin",CHATTYPE_ALL,1,GAMEMODE_AOW);


Type "!cin filename.txt" and it should work (I think).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: !team2 for just admins?
Next Topic: Sounds like in irc but instead in C++
Goto Forum:
  


Current Time: Sun Sep 01 03:17:54 MST 2024

Total time taken to generate the page: 0.00611 seconds