Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLoad(save_state)
- -- Objects
- counter = getObjectFromGUID("96c66b")
- diceA = getObjectFromGUID("6c73b8")
- diceB = getObjectFromGUID("aa87f4")
- end
- function onUpdate()
- Ares = diceA.getValue()
- Bres = diceB.getValue()
- counter.setValue(Ares - Bres)
- end
Advertisement
Add Comment
Please, Sign In to add comment