addToCollisionGroup

addToCollisionGroup <Col group>

This allow you to set 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
c_CGLandscape -- Will only collide with landscape

Example:

ObjectTemplate.create SimpleObject citymesh1fence_m1
ObjectTemplate.geometry citymesh1fence_m1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.addToCollisionGroup c_CGProjectiles

Valid object types

SimpleObject - Basic 1 part object with no children