preview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
preview [2019/10/02 15:33] – polymorphgames | preview [2020/04/22 11:48] – vjraymon | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | Since 1.5, Foundation allows to mod Custom component and links it to a fbx (see Exemple02) | ||
- | :!: Please do not upload mods for Foundation 1.4 to mod.io before | + | The following LUA code computes and returns |
- | ===== How to Access | + | |
- | Contact developer | + | local raycastResult |
+ | |||
+ | -- Raycast from the _globalPosition + 1000 | ||
+ | -- to _globalPosition - 1000 | ||
+ | -- only on objects with a WATER flag | ||
+ | local FromPosition | ||
+ | local ToPosition | ||
+ | if not self: | ||
+ | | ||
+ | | ||
+ | 2 ^ OBJECT_FLAG.WATER: | ||
+ | MyMod: | ||
+ | .. tostring(_globalPosition)) | ||
+ | | ||
+ | else | ||
+ | | ||
+ | end | ||
+ | end | ||
- | ===== Generated Documentation ===== | + | You can do the same with the ground by replacing OBJECT_FLAG.WATER by OBJECT_FLAG.GROUND |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[api: | + | |
- | ===== New Features ===== | + | If the water (or the ground) is not found (for instance |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | * [[preview: | + | |
- | ===== Migration Notes ===== | + | |
- | ==== New mod.json ==== | + | |
- | In order to only load mods when enabled, Foundation will now need a new description file for each mod. It will declare all the things Foundation would need to know about the mod without parsing | + | |
- | <file json mod.json> | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | { | ||
- | " | ||
- | " | ||
- | } | ||
- | ] | ||
- | } | ||
- | </ | ||
- | ==== createMod() function is simplified ==== | ||
- | Since the new '' | ||
- | <file lua mod.lua> | ||
- | local myMod = foundation.createMod() | ||
- | </ | ||
- | |||
- | |||
- | ==== GENERAL_DATA asset type has been removed ==== | ||
- | '' | ||
- | |||
- | However, modders can now partially override Foundation main balancing ('' |