VE Lua Documentation

Press F to search!

setGhostEnabled

Definition


-- @/=[C]:-1
function setGhostEnabled(...)

Callers

@/lua/ge/extensions/core/vehicles.lua
      -- main vehicle of collection
      -- TODO: uncomment setGhostEnabled() when its able to work well
      --be:queueObjectFastLua(vid, "obj:setGhostEnabled(true)")
      -- TODO: uncomment setGhostEnabled() when its able to work well
      --be:queueObjectFastLua(vid, "obj:setGhostEnabled(true)")
      collectionResetRec(collection, vid)
      collectionResetRec(collection, vid)
      --be:queueObjectLua(vid, "obj:setGhostEnabled(false)")
      resetVehicleCollection(collection)
@/lua/vehicle/main.lua
  if ghostOnTp ~= nil then
    obj:setGhostEnabled(ghostOnTp)
  end
  if ghostOnReset ~= nil then
    obj:setGhostEnabled(ghostOnReset)
  end