Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ Problem.
Re: C++ Problem. [message #339827 is a reply to message #339824] Tue, 08 July 2008 19:00 Go to previous messageGo to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma:
Colonel

// SCRIPT MADE BY HEAVYX101, REMEMBeR THAT!
class presetbuildChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
				GameObject *Own = Get_GameObj(ID);
			 	   const char *preset = Commands->Get_Preset_Name(Text[1].c_str());
Vector3 position;
position = Commands->Get_Position(obj);
position.Z += 0;
position.X += (float)(5*cos(Commands->Get_Facing(Get_GameObj(ID))*(3.14 / 180)));
position.Y += (float)(5*sin(Commands->Get_Facing(Get_GameObj(ID))*(3.14 / 180)));
 {


	GameObject *object = Commands->Create_Object("%d",preset));
Console_Input(StrFormat("msg WORKS!").c_str());
	Commands->Set_Facing(obj, Commands->Get_Facing(obj)-180);
	}
	}
};
ChatCommandRegistrant<presetbuildChatCommand> presetbuildChatCommandReg("!pbuild",CHATTYPE_ALL,1,GAMEMODE_AOW);

That is the whole command i'm working on. Rocked Over


This account is no longer being active.

[Updated on: Tue, 08 July 2008 19:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need some more file names.
Next Topic: Character Polys?
Goto Forum:
  


Current Time: Thu Oct 10 10:10:51 MST 2024

Total time taken to generate the page: 0.01325 seconds