• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Game Cache

Status
Not open for further replies.
Level 8
Joined
Jul 28, 2008
Messages
211
Hi!

I want to know how can i get a stored unit with jass.

I tried reading a few tutorials but all i saw was :

Now, storing and getting units is a pain in the ass, and everything else than boolean, string, integer and real is nearly impossible, or very annoying to do all the time, to do without a system.

I've heard about local handle vars and structs, but I want to know how to do it without any of those.

Thx!
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
JASS:
native InitGameCache takes string campaignFile returns gamecache
this is similar to
  • Game Cache - Create a game cache from MapName.w3v
but not the same as the JASS one is native and the trigger one is BJ, which calls the native one.
---
native StoreBoolean takes gamecache cache, string missionKey, string key, boolean value returns nothing Stores Boolean
native RestoreUnit takes gamecache cache, string missionKey, string key, player forWhichPlayer, real x, real y, real facing returns unit Restors unit from a cache.
native ReloadGameCachesFromDisk takes nothing returns boolean in triggers
  • Game Cache - Reload all game cache data from disk
<< ADDED >>
JASS:
native FlushGameCache takes gamecache cache returns nothing
similar to
  • Game Cache - Clear (Last created game cache)
 
Status
Not open for further replies.
Top