[Bug] ModelComponent:get/setReflection() error

Have trouble running Legend of Grimrock 2 or do you have questions about the purchasing options? Look for help here.
Post Reply
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

[Bug] ModelComponent:get/setReflection() error

Post by minmay »

ModelComponent:getReflection() and ModelComponent:setReflection() seem to never succeed:

Code: Select all

print(beach_rock_arch_2.model)
table: 0x0b8ea610
print(beach_rock_arch_2.model:getReflection())
[string "user-input"]:1: attempt to cal a nil value
print(beach_rock_arch_2.model:setReflection(true))
[string "user-input"]:1: attempt to cal a nil value
print(beach_rock_arch_2.model:setReflection(false))
[string "user-input"]:1: attempt to cal a nil value
I could *really* use these functions for an upcoming modding utility, so a fix would be appreciated!
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply