hi now i have script when player press 1
will create this
-- server
local myobject = createObject (8873, myx, myy, myz)
local mycol = createColSphere ( myx, myy, myz, 320 )
setElementData(mycol,'col',myobject)
setElementData(mycol,'colplayer',plr)
i want when player quit destroy all elements ( not last elements only ) created by him
i know i have read all xml functions but how to take a value of variable ?
as
x = x or getElementData(localPlayer) --( x = 1 )
when i start script i want
x = 1
hello
i have script but i want save variables in it
for example
i have x,y,z i want when script stop
save x,y,z in file as xml and when script start
if found x,y,z in file xml then
use it in function
it's in 1 function
timer with table Table = {
{"1","2","3"}
}
setTimer(function()
for i,v in ipairs(Table) do
if (T1== v[1] and T2 == v[2] and T3 == v[3]) then
outputChatBox('true')
return
else
outputChatBox('false')
end
end
end,1000,1)
reason is the ipairs but how fix it i don't know
setTimer(function()
for i,v in ipairs(Table) do
if (T1== v[1] and T2 == v[2] and T3 == v[3]) then
outputChatBox('true')
else
outputChatBox('false')
end
end
end,1000,1)
this is my code when first the condition will output 'true'
but when output 'true' be repetitive
any help to be 1 time only with out repet
but what function use in server side
i can't find it in server side for trainhorns
i wanaa when hit marker in client then make sound for
player hit marker
or for near players
but i think for player hit marker only better