preview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
preview [2020/04/22 11:47] – created vjraymon | preview [2020/04/22 11:48] – vjraymon | ||
---|---|---|---|
Line 4: | Line 4: | ||
The following LUA code computes and returns the global Y elevation of water from a global position: | The following LUA code computes and returns the global Y elevation of water from a global position: | ||
- | function MY_CUSTOM_COMPONENT: | + | function MY_CUSTOM_COMPONENT: |
local raycastResult = {} | local raycastResult = {} | ||
Line 22: | Line 22: | ||
| | ||
end | end | ||
- | end | + | end |
You can do the same with the ground by replacing OBJECT_FLAG.WATER by OBJECT_FLAG.GROUND | You can do the same with the ground by replacing OBJECT_FLAG.WATER by OBJECT_FLAG.GROUND |