Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Spawning GDI_MRLS falls through floor
Spawning GDI_MRLS falls through floor [message #227370] Thu, 19 October 2006 18:35 Go to next message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
Does anybody know why the GDI_MRLS falls through the floor when
a script spawns it?

EG: Kill the CnC_GDI_MRLS will spawn a GDI_MRLS (one you cant enter)
as the "wreckage" and will replace with a CnC_GDI_MRLS when repaired.
But.. it falls through the floor always :S

		if (strstr(Commands->Get_Preset_Name(obj),"CnC_GDI_MRLS")) {
			DestroyedTank = Commands->Create_Object("GDI_MRLS",DeadPlace);
			Commands->Set_Facing(DestroyedTank,Facing);
			Commands->Attach_Script(DestroyedTank,"KAK_Vehicle_Death","1");
		}

...

			else if (strstr(Commands->Get_Preset_Name(obj),"GDI_MRLS"))
			{
				DeadPlace.Z += (float)1;
				DestroyedTank = Commands->Create_Object("CnC_GDI_MRLS",DeadPlace);
			}

Above is the code that i changed in ssaow 1.5's aow.cpp, is there
anything wrong here? Or is it a vage bug that it always falls through
the floor? :S

Thanks for your help Smile
Re: Spawning GDI_MRLS falls through floor [message #227395 is a reply to message #227370] Fri, 20 October 2006 03:27 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Don't know, you could try to let it spawn a littler bit higher.
Or maybe the vehicle death position is just wrong.
Or the spawned MRLS is not a physical object.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Spawning GDI_MRLS falls through floor [message #227415 is a reply to message #227370] Fri, 20 October 2006 07:17 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Make sure the GDI_MRLS is set to be a tracked vehichle in your objects.aow file.


Re: Spawning GDI_MRLS falls through floor [message #227466 is a reply to message #227370] Fri, 20 October 2006 14:00 Go to previous message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
Thanks for input @ Cat and Reborn!

Figured what is causing it now, on the Phys tab select "IsFake"
then it will not fall through the floor anymore Very Happy

[Updated on: Fri, 20 October 2006 14:02]

Report message to a moderator

Previous Topic: 3dmax8 + w3dsdk
Next Topic: Looking for a texture artist...
Goto Forum:
  


Current Time: Sun May 05 16:58:31 MST 2024

Total time taken to generate the page: 0.01101 seconds