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 #486061 is a reply to message #486053] Thu, 13 February 2014 14:13 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
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


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Thu, 13 February 2014 14:15]

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
Previous Topic: Sidebar tutorial for Renegade modders
Next Topic: butterfingers crate
Goto Forum:
  


Current Time: Mon Dec 23 15:10:58 MST 2024

Total time taken to generate the page: 0.00739 seconds