mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 07:32:35 +00:00
Initial work on Scripting sandbox, no longer Entity's responsibility.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user