View Issue Details

IDProjectCategoryView StatusLast Update
0009046New Feature Requests[All Projects] Generalpublic2017-06-18 20:56
ReporternokizorqueAssigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0009046: [Request] outputChatBox support for a table of players
Description

Add support for the sendTo argument in outputChatBox to be a table of player elements.

eg:

local t = {}
for _, v in pairs(getElementsByType("player")) do
if getPlayerMoney(v) == 0 then
table.insert(t, v)
end
end
outputChatBox("You have no money!", t)

TagsNo tags attached.

Activities

TAPL

2015-10-11 14:44

viewer   ~~0024112

local t = createElement("Players_With_ZeroMoney")
for
, v in pairs(getElementsByType("player")) do
if getPlayerMoney(v) == 0 then
setElementParent(v, t)
end
end
outputChatBox("You have no money!", t)

This just a workaround, still a table support would be good feature.

Issue History

Date Modified Username Field Change