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

Steal Credits On Custom. More...

#include <unstoppable.h>

Detailed Description

Author
Unstoppable

Steal credits from a team and evenly distributes the stolen credits to the opponent team on a custom event.

Parameters
TeamThe team which loses the credits.
PercentageThe percentage of credits to be stolen from the team. Setting to a negative value (such as -1) will use the custom message's parameter value as the percentage.
IDThe custom message ID.
DestroyAfterStealDestroys the script after stealing the credits if set to 1.
Remarks
The "Team" parameter has 4 special values. -1 = Steal credits from the team of the sender object. -2 = Steal credits from the team of the attached object. -3 = Steal credits from the opponent team of the sender object. -4 = Steal credits from the opponent team of the attached object.
Normally, the range of "Percentage" parameter is [0, 1]. However, if the "Percentage" parameter is negative, then the custom message's parameter value's range is [0, 100].