started working on an actual trigger for Level1
This commit is contained in:
parent
ed6e257b69
commit
66f892bc15
19
Levels/scripts/openDoor1
Normal file
19
Levels/scripts/openDoor1
Normal file
@ -0,0 +1,19 @@
|
||||
function trigger(objectToChange)
|
||||
if(not level) then
|
||||
print("No level found in Lua!")
|
||||
return
|
||||
end
|
||||
if(not physics) then
|
||||
print("No physics found in Lua!")
|
||||
return
|
||||
end
|
||||
|
||||
if(not openDoorCounter) then
|
||||
openDoorCounter = 0
|
||||
end
|
||||
openDoorCounter = openDoorCounter + 1
|
||||
|
||||
if (openDoorCounter == 3) then
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user