AddToCollisionGroup Property

Usage:
   ObjectTemplate.AddToCollisionGroup name

Argument values:

argument 1:    c_CGLadders, c_CGProjectiles; most commonly c_CGProjectiles

Description: This property sets how the object reacts to other objects and projectiles.

c_CGLadders - Acts as a ladder when touched
c_CGProjectiles - Allows bullets to pass through it (e.g., fencing)
c_CGLandscape -- Will collide only with the landscape (never used in BF)

Used in object types (and how often in each type): Obstacle (100%), simpleobject (2%)

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

Parent directories of these .con files: objects/Vehicles, objects/Vegetation, objects/MOVE_FILES, objects/Buildings, Bf1942/Levels

Example: (from objects/MOVE_FILES/Pipe_sRack_m1/Objects.con)
   ObjectTemplate.Create SimpleObject Pipe_sRack_m1
   ObjectTemplate.Geometry Pipe_sRack_m1
   ObjectTemplate.SetHasCollisionPhysics 1
   ObjectTemplate.AddToCollisionGroup c_CGProjectiles


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