• 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.

[Lua] Script for importing files?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Is there a way to use a Lua script to import files (e.g. models, icons, etc.)?

I would like it to be similar to the way the Lua object generation scripts work (these are very helpful).
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
You can use FileImporter, included by GrimExt. You can call it through an external command:
JASS:
//! external FileImporter F:\Files\AbilityData.slk Units\AbilityData.slk

For more information, you should look at the GrimEx manual. Open the JNGP folder, open "grimext", and open "GrimexManual.html".

Is there a tutorial on this, like for object generation?

Could you show how I would import a model and its textures (along with changing the custom path so the model finds the textures?)?
 
Status
Not open for further replies.
Top