Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Code] SSGM2.02 Custom Commands
Re: [Code] SSGM2.02 Custom Commands [message #381205 is a reply to message #381190] Sat, 18 April 2009 20:39 Go to previous messageGo to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma:
General (1 Star)
YazooGang wrote on Sat, 18 April 2009 18:44

Cinematic Player.
Info: Plays a cinematic .txt files from your FDS Data folder.
Usage: !cin <file.txt>
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);



Enjoy!

Please tell me if there are errors...



I guess you got that idea from St0rm? Wink

("suppose" wasn't the right word for that sentence...)

[Updated on: Sat, 18 April 2009 20:42]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Egypt Volcano
Next Topic: [skin] nod chrome buggy
Goto Forum:
  


Current Time: Sun Jan 12 06:56:38 MST 2025

Total time taken to generate the page: 0.00864 seconds