diff --git a/data/plugins/entity/interaction/object.rb b/data/plugins/entity/interaction/object.rb new file mode 100644 index 00000000..a62e17a2 --- /dev/null +++ b/data/plugins/entity/interaction/object.rb @@ -0,0 +1,6 @@ +# Catch all object actions and turn the player to +# the position of the object + +on :message, :object_action do |player, message| + player.turn_to message.position +end \ No newline at end of file diff --git a/data/plugins/entity/interaction/plugin.xml b/data/plugins/entity/interaction/plugin.xml new file mode 100644 index 00000000..168d83bb --- /dev/null +++ b/data/plugins/entity/interaction/plugin.xml @@ -0,0 +1,13 @@ + + + entity-interaction + 0.1 + Entity Interaction + Adds support for generic entity interactions (facing objects when using an action, etc). + + garyttierney + + + + + \ No newline at end of file