Okay so I'm probably just stupid and doing something wrong because I haven't used Leadwerks in a while now but I need help with this little code -
Script.box = "" --entity
function Script:Start()
local material = Material:Create()
material:SetColor(1,0,0)
end
function Script:Collision(entity, position, normal, speed)
self.box:SetMaterial(material)
end
I put it on a trigger ( Collision type is set to trigger, "box" is set to a CSG ) and everytime I enter the trigger the game just stops responding.
I also tried Material:Load but that does not work either.
Please help ;-;