Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Base Defense Team Change  () 1 Vote
Re: Base Defense Team Change [message #330819 is a reply to message #330818] Fri, 16 May 2008 23:34 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)
SSnipe wrote on Fri, 16 May 2008 23:26

nopol10 wrote on Fri, 16 May 2008 22:54

Commands->Set_Player_Type(

should work.



gdi=
Commands->Set_Player_Type(1);

nod

Commands->Set_Player_Type(0);

look about right?




wait nvm cuase see i have it so any team can do the command gdi and nod.....and need to be able to change what team they defences attack depending on hwo does the command.....aka

if im on gdi and type !test they pop up and turrents wont shot me only nod

and if im on nod and type !test tht guard towers and turrents shoot gdi players not me (nod)


will this work? cant test it right now but do you guys think it could work?
class test3ChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
		 Vector3 Pos = Commands->Get_Position(obj);
				Pos.Z += 5.471f,Pos.Y += -6.268f,Pos.X += -2.795f;
				GameObject *ct = Commands->Create_Object("GDI_Guard_Tower",Pos);
				Commands->Set_Facing(ct,Pos.Z += -90.0f);
			if (Get_Object_Type(obj) == 0) {
				Commands->Set_Player_Type(ct,1);
			   }
	else {
			Commands->Set_Player_Type(ct,0);
			   }
	}
};

ChatCommandRegistrant<test3ChatCommand> test3ChatCommandReg("!test3",CHATTYPE_ALL,0,GAMEMODE_ALL);



[Updated on: Fri, 16 May 2008 23:45]

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
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: W3d import error-dsp_shipradar.w3d
Next Topic: [Release]Some skins
Goto Forum:
  


Current Time: Sat Jul 19 10:44:58 MST 2025

Total time taken to generate the page: 0.01279 seconds