Hi all,
What is the new method to return the value of a counter ? old one was for example : counter1:getvalue()
I would like , to test a script , to print the value of counter1
Faerghail
Code: Select all
function firetrappuzzle1()
local count1 = firecounter_1.counter:getValue()
local count2 = firecounter_2.counter:getValue()
local count3 = firecounter_3.counter:getValue()
if firecounter_1.counter:getValue() == 0 and
firecounter_2.counter:getValue() == 1 and
firecounter_3.counter:getValue() == 0 then
hudPrint("firecounter_1 has "..count1.." in value")
hudPrint("firecounter_2 has "..count2.." in value")
hudPrint("firecounter_3 has "..count3.." in value")
mine_door_spear_1.door:open()
else
mine_door_spear_1.door:close()
hudPrint("firecounter_1 has "..count1.." in value")
hudPrint("firecounter_2 has "..count2.." in value")
hudPrint("firecounter_3 has "..count3.." in value")
end
end
Code: Select all
lever.lever:getValue()
Code: Select all
plate.floortigger:getValue()
Code: Select all
function time(time)
while time == false do
hudPrint(time)
end
end
function timer()
script_entity.script.time(10)
end