Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Ingame Error?
Ingame Error? [message #273263] Sat, 14 July 2007 20:14 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
im testing my code to teleport me to the single flar
class testChatCommand : public ChatCommandClass {
	 void Triggered(int ID,const TokenClass &Text,int ChatType) {
                if (Is_Mod("Test_Mods.txt",Get_Player_Name_By_ID(ID))) {
		GameObject *obj = Get_GameObj_By_Player_Name(Text[1].c_str());
                Change_Character(obj,"GDI_MP");
		Commands->Attach_Script(obj,"JFW_Permanent_No_Falling_Damage",false);
		Commands->Give_Powerup(obj,"CnC_POW_AutoRifle_Player_GDI",false);
		Commands->Attach_Script(obj,"JFW_Permanent_No_Falling_Damage",false);
SimpleDynVecClass<GameObject*> List = Get_All_Objects_By_Preset(2,"Signal_Flares");
int Rand = Commands->Get_Random_Int(0,List.Count());
GameObject *RandObj = List[Rand];
Commands->Set_Position(obj,Commands->Get_Position(RandObj));;
Vector3 Pos = Commands->Get_Position(obj);
			Pos.Z += 0.710;
				}
	}
};

NOTE i added the Vector3 Pos = Commands->Get_Position(obj);
Pos.Z += 0.710;
myself to maybe fix it

well besides that the error i get is this ingame is this
http://i72.photobucket.com/albums/i172/Tanner2007/84a8fb48.png
and this is how it is in lvl and idk how to fix it iv tryed all i know
http://i72.photobucket.com/albums/i172/Tanner2007/ab1c256f.jpg
 
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: Help me plz!!(me n00b)
Next Topic: Cinematics help!
Goto Forum:
  


Current Time: Wed Nov 06 10:23:04 MST 2024

Total time taken to generate the page: 0.00885 seconds