16 lines
299 B
Lua
16 lines
299 B
Lua
-- 2018/04/26
|
|
-- Cambio livello oggetto a utente
|
|
|
|
-- Intestazioni
|
|
require( 'EgtBase')
|
|
_ENV = EgtProtectGlobal()
|
|
EgtEnableDebug( false)
|
|
|
|
|
|
-- Recupero primo oggetto selezionato
|
|
local nId = EgtGetFirstSelectedObj()
|
|
if not nId then return end
|
|
|
|
-- Imposto livello utente
|
|
EgtSetLevel( nId, GDB_LV.SYSTEM)
|