Difference between revisions of "LUA:IsBehind"
(Created page with "= LUA Functions: IsBehind() = Checks to see if the given spawn is behind the target spawn ==== Syntax ==== IsBehind(param1, param2) ==== Parameters ==== ; Required - ''param1'...") |
(No difference)
|
Latest revision as of 17:14, 15 December 2013
LUA Functions: IsBehind()
Checks to see if the given spawn is behind the target spawn
Syntax
IsBehind(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (Spawn)
- param1 is the spawn who will be checking the other
- param2 is the spawn we want to know if it is behind
Usage
function precast(Caster, Target)
return IsBehind(Target, Caster)
end
Will check to see if the caster is behind the target before casting