• 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!

HOTD - Help...

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Code:
function isInRange(pos, fromPosition, toPosition)
	return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z and position.x <= toPosition.x and position.y <= toPosition.y and position.z <= toPosition.z)
end

Error:


Help-me!!! please =x
 
Last edited:
Function uses different param names.

Change:
Code:
function isInRange(pos, fromPosition, toPosition)

to:
Code:
function isInRange(position, fromPosition, toPosition)

pos -> position
 
Back
Top