Is there a simple script that can make that ? In the first Grimrock i used this one:
Code: Select all
function activate(object)
-- print (object.name)
for i in entitiesAt(object.level, object.x, object.y) do
if i.name == "teleporter" then
local math = math.random (0,3)
i:setTeleportTarget(i.x, i.y, math)
end
end
endBut the commands are differents in Grimrock 2, someone knows what do i have to change in this script by any chance ?
Thanks in advance for your help.