Spawning GDI_MRLS falls through floor [message #227370] |
Thu, 19 October 2006 18:35 |
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
|
|
|
|
|
|