|
Tiberian Technologies Scripts Reference Revision: 9000
|
dp88 Building Scripts - Major Weakpoint 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 a building part which should function as a major weakpoint, which can be attacked by an enemy to destroy the building. If a building has multiple major weakpoints they must all be destroyed before the parent building is destroyed.
| 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 weakpoint |
| 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 weakpoint when it has been destroyed |
|
protectedvirtual |
Event function called when the building has been destroyed
Reimplemented from dp88_buildingScripts_baseClass.