VictorOtInfinit
Member
- Joined
- Mar 14, 2020
- Messages
- 139
- Solutions
- 3
- Reaction score
- 11
There a way to do a Try/Catch in lua like in java?
I need to verify if in X/Y/Z/Q/H SQM's have players, but when i try to:
And the SQM have no player the function:
will return nil and will stop the script, i need something to catch that nil and ignore him, even if this SQM have no player.
I need to verify if in X/Y/Z/Q/H SQM's have players, but when i try to:
Lua:
local playerPos1 = Tile(Position(32340, 32454, 6)):getTopCreature()
And the SQM have no player the function:
Lua:
Tile(Position(32340, 32454, 6)):getTopCreature()