You are viewing an old version of this page. Return to the latest version.
Version of 17:30, 16 December 2013 by I need to Update My Profile
Difference between revisions of "LUA:AddThreatTransfer"
(Created page with "= LUA Functions: IsFlanking() = Checks to see if the given spawn is flanking the target spawn ==== Syntax ==== IsFlanking(param1, param2) ==== Parameters ==== ; Required - ''p...") |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | + | |Name = AddThreatTransfer | |
| − | + | |Description = Adds a threat transfer for the given percentage | |
| − | = | + | |Param1 = Spawn |
| − | + | |Param1Desc = is the spawn who will be transferring the hate | |
| − | + | |Param2 = spawn | |
| − | + | |Param2Desc = is the spawn who we transfer the hate to | |
| − | = | + | |Param3 = float |
| − | + | |Param3Desc = is the percentage of hate to transfer | |
| − | + | |Example = | |
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
| − | function | + | function cast(Caster, Target) |
| − | + | AddThreatTransfer(Caster, Target, 30) | |
end | end | ||
</pre> | </pre> | ||
| + | |ExampleDesc = When cast this spell will add a threat transfer of 30% | ||
| + | |Notes = Only 1 threat transfer can be active at a time | ||
| − | + | This function can only be used in a spell script | |
| + | }} | ||
Latest revision as of 12:08, 30 January 2021
LUA:AllFunctions - AddThreatTransfer
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds a threat transfer for the given percentage
Syntax
AddThreatTransfer(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (spawn), param3 (float)
- param1 is the spawn who will be transferring the hate
- param2 is the spawn who we transfer the hate to
- param3 is the percentage of hate to transfer
Example
function cast(Caster, Target)
AddThreatTransfer(Caster, Target, 30)
end
When cast this spell will add a threat transfer of 30%
Notes
Only 1 threat transfer can be active at a time
This function can only be used in a spell script