- Joined
- Mar 24, 2013
- Messages
- 1,105
Have not done anything on the latest patch, coded some stuff in notepad, pasted it over.
It passes the JASSHelper check fine, but then I get 20+ unknown compiler errors, and 20+ symbol not declared. Haven't really used the latest editor at all so is there a setting I have fouled up?
It passes the JASSHelper check fine, but then I get 20+ unknown compiler errors, and 20+ symbol not declared. Haven't really used the latest editor at all so is there a setting I have fouled up?
JASS:
library Space initializer init
globals
private unit array u// caster array
private effect array e
private real array d // duration array
private integer index = 0
private constant real TIMEOUT = .03125
private constant timer t = CreateTimer()
private constant integer THUNDER_ROCKET = '0000' //
private constant real DURATION = 5.
private constant string EFFECT = "Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl"
private constant real OFFSET = 200.
endglobals
function ThunderRocket takes nothing returns boolean
local real angle
local real angle2
local real x = 0
local real y = 0
if GetSpellAbilityId() == THUNDER_ROCKET then
set u[index] = GetTriggerUnit()
set d[index] = DURATION
set angle = GetUnitFacing(u[index])
set x = GetUnitX(u[index])
set y = GetUnitY(u[index])
set angle2 = OFFSET * Cos(angle)
set x = x + angle2
set angle = OFFSET * Sin(angle)
set y = y + angle2
set e[index] = AddSpecialEffect(EFFECT, x,y)
endif
return false
endfunction
private function init takes nothing returns nothing
local trigger t10 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( t10, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( t10, Condition(function ThunderRocket))
endfunction
endlibrary
Last edited: