Turn player to objects when interacting with them

This commit is contained in:
Gary Tierney
2016-03-17 23:06:23 +00:00
parent dfa8ebed07
commit 3826befb08
2 changed files with 19 additions and 0 deletions
@@ -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
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<plugin>
<id>entity-interaction</id>
<version>0.1</version>
<name>Entity Interaction</name>
<description>Adds support for generic entity interactions (facing objects when using an action, etc).</description>
<authors>
<author>garyttierney</author>
</authors>
<scripts>
<script>object.rb</script>
</scripts>
</plugin>