Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » linking presets  () 1 Vote
Re: linking presets [message #486062 is a reply to message #486061] Thu, 13 February 2014 14:19 Go to previous messageGo to previous message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma:
Recruit
Gen_Blacky wrote on Thu, 13 February 2014 16:13

Not sure what your trying to do but make your own leveledit script to do what you want.

Create_Preset_Object_Location, create a preset at an object's location and set facing.

void Create_Preset_Object_Location::Created(GameObject *obj)
{
	Vector3 Pos = Commands->Get_Position(obj);
	Pos.Z += 0.2f;
	const char *Preset = Get_Parameter("Preset");

	GameObject *o = Commands->Create_Object(Preset,Pos);
	Commands->Set_Facing(o,Commands->Get_Facing(obj));
}

ScriptRegistrant<Create_Preset_Object_Location> Create_Preset_Object_Location_Registrant("Create_Preset_Object_Location","Preset:string");


Manipulate the position X Y Z to move the object where you want


I didn't know you did scripts.

Can I talk to you on t.s. for a min about this?


Level edit is my play ground
 
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: Sidebar tutorial for Renegade modders
Next Topic: butterfingers crate
Goto Forum:
  


Current Time: Mon Dec 23 22:16:16 MST 2024

Total time taken to generate the page: 0.01524 seconds