Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
12 stars 6 forks source link

[Bug] CreateBrush function does not pick sub-object #294

Closed YuLun-bili closed 5 months ago

YuLun-bili commented 1 year ago

Describe the bug

The function CreateBrush() for voxscript doesn't pick sub-object however this feature is documented in API (https://teardowngame.com/modding/voxscript.html#CreateBrush)

Steps to reproduce the behavior

  1. Make a simple voxscript
  2. Add function CreateBrush() and attempt to pick a sub-object
  3. Refresh editor scene and voxscript rejects to load model

Expected behavior

Be able to load sub-object as brush

Environment

Additional context

The voxcript in 24 slice mod have following comments:

-- Selecting a sub-object from the Magica Voxel file isn't supported in the public build yet. Sorry about that :)
--[[
object = GetString("object")

if object ~= "" then
    model = model .. ":" .. object
end
--]]
nooitaf commented 1 year ago

Not sure what you mean by "sub-object" but you can pick objects like this..

CreateBrush("MOD/file.vox:objectname",true)
YuLun-bili commented 5 months ago

why I still left this open :|