• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua TFS 0.4 isMonster(x)

Hernest

New Member
Joined
Jul 26, 2010
Messages
152
Reaction score
3
Location
poland
Hello, I came here because something is wrong with my isMonster function. Player can choose monster with for example: /arena Demon, then table[cid] = Demon. I want to check if it is monster or not. isMonster(table[cid]) always returns false, it's a string, also tried with isMonster(Demon) and isMonster("Demon") but result is the same - always FALSE.
 
Problem solved, changed to doCreateMonster(wybierzcycki[cid], {x=pozycje[wartosc].x, y=pozycje[wartosc].y+2, z=pozycje[wartosc].z}, false, false, false) and works fine, without errors ;d
 
Back
Top