Code: Select all
/c game.player.print(type(game.player.character.alert_parameters))
Cannot execute command. Error: Entity is not programmable-speaker.
Code: Select all
/c
function crash(node)
local help = node.help()
help = help:gsub('.*Values:', '')
for k in help:gmatch('%s*([^[]+) %[R[^[]*]') do
local success, result = pcall(function() return node[k] end)
end
end
crash(game.player.character)
Code: Select all
/c
function works(node)
local help = 'active [R] alert_parameters [R] speed [R]'
help = help:gsub('.*Values:', '')
for k in help:gmatch('%s*([^[]+) %[R[^[]*]') do
local success, result = pcall(function() return node[k] end)
game.player.print(k .. ': ' .. tostring(result))
end
end
works(game.player.character)