- Joined
- Jul 6, 2009
- Messages
- 1,885
Can someone explain me why in this function...
...the SaveInteger functions don't work? (The values don't get saved)
Also if i put them on function start like...
...they do work!
How can function schedule affect it?!
Oh and "Sacing" is a typo,it's supposed to be "Saving"...
JASS:
function Track_Actions takes nothing returns nothing
set bj_lastCreatedUnit = CreateUnit(GetOwningPlayer(GetTriggerUnit()),'h005',GetUnitX(GetSpellTargetUnit()),GetUnitY(GetSpellTargetUnit()),0.00)
call UnitApplyTimedLife(bj_lastCreatedUnit, 'BTLF',1.00)
call IssueTargetOrder(bj_lastCreatedUnit, "faeriefire", GetSpellTargetUnit())
call SaveInteger(udg_Hashtable,GetHandleId(GetSpellTargetUnit()),1,10)
call SaveInteger(udg_Hashtable,GetHandleId(GetSpellTargetUnit()),2,GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
endfunction
Also if i put them on function start like...
JASS:
function Track_Actions takes nothing returns nothing
call SaveInteger(udg_Hashtable,GetHandleId(GetSpellTargetUnit()),1,10)
call SaveInteger(udg_Hashtable,GetHandleId(GetSpellTargetUnit()),2,GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
set bj_lastCreatedUnit = CreateUnit(GetOwningPlayer(GetTriggerUnit()),'h005',GetUnitX(GetSpellTargetUnit()),GetUnitY(GetSpellTargetUnit()),0.00)
call UnitApplyTimedLife(bj_lastCreatedUnit, 'BTLF',1.00)
call IssueTargetOrder(bj_lastCreatedUnit, "faeriefire", GetSpellTargetUnit())
endfunction
How can function schedule affect it?!
Oh and "Sacing" is a typo,it's supposed to be "Saving"...
Last edited: