Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
List of all members
dp88_buildingScripts_functionMoneyGrant Class Reference

Building function - Grant Money On Capture. More...

#include <dp88_buildingScripts.h>

Additional Inherited Members

- 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 OnBuildingDestroyed (GameObject *obj)
 
- Protected Attributes inherited from dp88_buildingScripts_baseClass
int m_parentId
 

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

Grants a fixed amount of money to a team when they capture this building. If the building is not neutral when this script is attached the current team will immediately get money. Can either give money each time the building is captured or only the first time it is captured. This script should be attached to the same object as the dp88_buildingScripts_controller script for the building.

Parameters
creditsThe amount of credits to be given
onceOnlyOnly give credits the first time the building is captured