Initial work on Scripting sandbox, no longer Entity's responsibility.

This commit is contained in:
2019-09-27 12:37:16 -05:00
parent 0b40e042bf
commit 1bfc6e6929
7 changed files with 97 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
origin = self.position
origin = entity.position
on.entity_moved do |event|
if origin.distance3d(event.entity.position) <= 3.0
self.position = origin + Vector.up * 2.4
entity.position = origin + Vector.up * 2.4
else
self.position = origin
entity.position = origin
end
end