- Joined
- Sep 28, 2004
- Messages
- 365
I can't find any tutorial for this. I would like to know if i want to create a custom script. Can it call functions?
Example of what i did. But it gives errors
I don't know what is wrong, anyone can help me? I am new to this and wanted to try out something new.
I want it so that i can use:
Thanks for helping!
Example of what i did. But it gives errors
JASS:
function ConeBool takes unit caster, unit victim, real radius returns boolean
if (Cos(( GetUnitFacing(caster) - AngleBetweenPoints(GetUnitLoc(caster), GetUnitLoc(victim) )) > Cos( radius / 2.00 )) then
return true
endif
return false
endfunction
I don't know what is wrong, anyone can help me? I am new to this and wanted to try out something new.
I want it so that i can use:
-
custom script: set udg_inConeRadius = ConeBool(castingunit, pickedunit, 180)
Thanks for helping!