|
Tiberian Technologies Scripts Reference Revision: 9000
|
dp88 Building Scripts - Building Component More...
#include <dp88_buildingScripts.h>
Protected Member Functions | |
| void | OnBuildingDestroyed (GameObject *obj) |
Protected Member Functions inherited from dp88_buildingScripts_componentBaseClass | |
| void | Detach (GameObject *obj) |
| virtual void | OnDetach (GameObject *obj) |
| void | PlayAnimation (GameObject *obj, const char *animation, int nStartFrame, int nEndFrame, bool bLooped) |
Protected Member Functions inherited from dp88_buildingScripts_baseClass | |
| GameObject * | RegisterWithParent (GameObject *obj, const char *preset_name, int type) |
| void | Custom (GameObject *obj, int type, int param, GameObject *sender) |
| virtual void | OnCustom (GameObject *obj, int type, int param, GameObject *sender) |
| virtual void | OnBuildingOffline (GameObject *obj) |
| virtual void | OnBuildingOnline (GameObject *obj) |
| virtual void | OnBuildingCaptured (GameObject *obj, int team) |
Additional Inherited Members | |
Protected Attributes inherited from dp88_buildingScripts_componentBaseClass | |
| LoopedAnimationController * | m_pAnimController |
Protected Attributes inherited from dp88_buildingScripts_baseClass | |
| int | m_parentId |
Attach this script to any object whose health should be linked with the health of the parent building. This can be used to create areas of the building which have different skin/shield types, such as repair nodes which allow faster repairing or weak areas which cause more damage.
| Building_Controller_Preset | Name of the preset to which the controller script for this building is attached. Note that if there are multiple copies of this preset on the map the script will use the closest instance as its parent. |
| Animation_Name | Optional. The name of an animation to play on this component |
| Animation_Start_Frame | Optional. The first frame number to play within the named animation |
| Animation_End_Frame | Optional. The last frame number to play within the named animation |
| Animation_Looped | Optional. Whether to loop the animation. 1 to enable, 0 to disable |
| Dead_Preset | Optional. The name of a preset to spawn in place of this component when it has been destroyed |
|
protectedvirtual |
Event function called when the building has been destroyed
Reimplemented from dp88_buildingScripts_baseClass.