Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLoad()
- --if the script is on Global then declare the zone here:
- zone = getObjectFromGUID("d15e01")
- --alternately, if the script is on the zone itself, decalre the zone as follows:
- --zone = self
- end
- function onObjectEnterScriptingZone(zone, obj)
- if zone == zone and obj.tag == "Card" then
- Wait.condition(
- function()
- obj.setRotationSmooth(obj.getRotation():add(Vector(180, 0, 0)))
- end,
- function()
- return (obj.resting and not obj.held_by_color)
- end
- )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement