User Tools

Site Tools


mod-management-functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mod-management-functions [2021/06/08 14:47] – [override] maximemod-management-functions [2021/10/04 11:18] maxime
Line 7: Line 7:
 Loads and runs a Lua script Loads and runs a Lua script
  
-Returns ''true'' if the file is inside the mod directory and exists, ''false'otherwise+Returns the file's return values
  
-''boolean **myMod:dofile**(//scriptPath// [, //args...//])''+''[...] **myMod:dofile**(//scriptPath// [, //args...//])''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
Line 64: Line 64:
 Assign an asset ID to an asset in the mod's directory Assign an asset ID to an asset in the mod's directory
  
-''void **myMod:registerAssetId**(//assetPath//, //assetId//)''+''void **myMod:registerAssetId**(//assetPath//, //assetId// [, //assetType//])''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | //''assetPath''// | ''string'' | the path to the asset | | //''assetPath''// | ''string'' | the path to the asset |
 | //''assetId''// | ''string'' | the ID to assign to the asset | | //''assetId''// | ''string'' | the ID to assign to the asset |
 +| //''assetType''// | ''string'' | optional, type of the asset |
  
 ---- ----
mod-management-functions.txt · Last modified: 2022/10/07 11:18 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki