SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
for a mission, i have made a plane crash scene in a city. but the problem is that the plane i am using (commercial airliner) for some reason, takes off and starts flying. i need that plane to stay put, and look crashed.

i have tried making its health to dead and it doesnt work either.

any ideas?
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Sponsor
NewNightmare
13 years ago
Copy its modeldraw module to a cloned code of a hulk of some vehicle, and remove lifetimeupdate module from it, like so:

Object DeadAirlinerHulk

; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
ConditionState = NONE
Model = CVAirplane
End

ConditionState = REALLYDAMAGED
Model = CVAirplane_D
End

ConditionState = RUBBLE
Model = CVAirplane_D
End
End

; ***DESIGN parameters ***
Side = America
EditorSorting = SYSTEM
TransportSlotCount = 0 ;how many "slots" we take in a transport (0 == not transportable)

; *** AUDIO Parameters ***
; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = CAN_CAST_REFLECTIONS IMMOBILE NO_COLLIDE HULK

Body = ActiveBody ModuleTag_02
MaxHealth = 1.0
InitialHealth = 1.0
End


Behavior = PhysicsBehavior ModuleTag_03
Mass = 50
AllowBouncing = Yes
End

;Behavior = LifetimeUpdate ModuleTag_04
; MinLifetime = 0 ; min lifetime in msec
; MaxLifetime = 0 ; max lifetime in msec
;End

Behavior = SlowDeathBehavior ModuleTag_05
SinkDelay = 14000
SinkRate = 2 ; in Dist/Sec
DestructionDelay = 20000
End

Behavior = TransitionDamageFX ModuleTag_06
RubbleParticleSystem1 = Bone:Smoke RandomBone:Yes PSys:SmokeSmallContinuous01
End

Geometry = BOX
GeometryMajorRadius = 9.0
GeometryMinorRadius = 6.0
GeometryHeight = 7.5
GeometryIsSmall = Yes

End

This should give you a unit that is immobile (as stated in kindofs), and never disappears.
You could also try creating a map.ini for that map, and add something like this inside, provided you don't need the unit to fly (other airliners):

Object CommercialAirliner
KindOf = CAN_CAST_REFLECTIONS VEHICLE AIRCRAFT
End

makes plane sit in one place, just tested
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago

Copy its modeldraw module to a cloned code of a hulk of some vehicle, and remove lifetimeupdate module from it

Originally Posted by: newnightmare 



i dont know how to do that, nor where the modeldraw module is.

and the ini doesnt work, the plane still takes off.
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

NewNightmare
13 years ago
did you make sure the map.ini is saved in .ini format? not just a txt file called 'map.ini'?
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
yes.
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

i^love^mixery
13 years ago
why dont you just use the script Unit -> Move -> Set unit to be held in place?

seriously guys.. an .ini for that?
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
13 years ago
Or even easier, just uncheck the "Enabled" tickbox in the unit properties...
UserPostedImage 
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
wow, thanks krit! it worked!
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey