AddChild Property

Usage:
   ObjectTemplate.AddChild boolean

Argument values:

argument 1:    1; most commonly 1

Description: AddChild allows an effect to be linked to a weapon as a child. Usually this is used for muzzle flashes for handweapons and firearms. In other words, if you shoot the weapon and turn to the left, the effect stays attached to the weapon instead of staying in the same position.

Related properties: Intensity, StartRotation

Used in object types (and how often in each type): Emitter (10%)

Used in a total of 55 .con files: Effects.con

Parent directory of these .con files: objects/Effects

Example: (from objects/Effects/e_MuzzPriest/Effects.con)
   rem *** Em_MuzzPriest_WSmoke ***
   ObjectTemplate.Create Emitter Em_MuzzPriest_WSmoke
   ObjectTemplate.Template Fx_MuzzPriest_WSmoke
   ObjectTemplate.AddEmitterSpeed 1
   ObjectTemplate.EmitterSpeedScale 1
   ObjectTemplate.LodDistance 800
   ObjectTemplate.TimeToLive CRD_NONE/0.4/0/0
   ObjectTemplate.Intensity CRD_NONE/10/0/0
   ObjectTemplate.PositionalSpeedInDof CRD_NONE/-10/0/0
   ObjectTemplate.StartRotation CRD_NONE/1/0/0
   ObjectTemplate.AddChild 1


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.