FlagBase Type

The FlagBase object type is created by ObjectTemplate.Create.

The FlagBase is the pole that holds the flag. The unique thing about the FlagBase is that it knows what flag to place based on the soldier that has captured it. All you need to do is set the flag location and point it to the flag pole geometry.

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

Parent directory of these .con files: objects/Items

Example: (from objects/Items/Flag/Objects.con)
   rem ------------- BlueFlag and RedFlag is defined per level ------------------------
   ObjectTemplate.Create FlagBase BlueBase
   ObjectTemplate.Team 1
   ObjectTemplate.FlagTemplate BlueFlag
   ObjectTemplate.Radius 5
   ObjectTemplate.Geometry flagbase_m1
   ObjectTemplate.SetHasCollisionPhysics 1
   ObjectTemplate.SetFlagLocation 0/7.6/0 0/0/0

Properties used with this type of object:
   ObjectTemplate.Create
   ObjectTemplate.FlagTemplate
   ObjectTemplate.Geometry
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.Radius
   ObjectTemplate.SetFlagLocation
   ObjectTemplate.SetHasCollisionPhysics
   ObjectTemplate.Team


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.