Ølsken wrote: ↑07 Jun 2020, 16:06
isRoadDeco() will return a boolean (
true/
false) value. It won't change anything is the program it's more of a "checking function". Post the code here and I can give you some advice.
Yes, i have seen all values or return of function in doc website. Boolean, number, or string.
Code: Select all
function script:click(x,y)
if Tile.isRoadDeco == true and Tile.getTraffic >= 0.3 then
stuff
end
When i'm just use getTraffic condition, the script is work, but when i put the road deco, isn't work. What should i do when road deco in my road, then just use getTraffic, lua can't detection anything.
