SouLEDGE
Damn you advanced calculus
- Reaction score
- 75
I can't figure out why it won't add my unit to my selection after I restore it from the game cache:
JASS:
//Game Cache Init
call InitGameCacheBJ( "MapName.w3v" )
set g = bj_lastCreatedGameCache
call SaveGameCache(g)
//End OF Game Cache Init
//Store and remove unit
call StoreUnit(g, "Sonic", "Caster", u) //Store Caster in gamecache g
call SaveGameCache(g) //Update gamecache
call RemoveUnit(u)
//Store and remove unit
//Restore and Select
call RestoreUnit(g, "Sonic", "Caster", GetOwningPlayer(u), x, y, AngleBetweenPoints(Location(x,y), lt))
//set u = bj_lastLoadedUnit
set u = GetLastRestoredUnitBJ()
call KillUnit(u)
call SelectUnitAddForPlayer( u, GetOwningPlayer(u) )
//Restore and Select