mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Turn player to objects when interacting with them
This commit is contained in:
@@ -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>
|
||||||
Reference in New Issue
Block a user