mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
10 lines
228 B
Ruby
10 lines
228 B
Ruby
# frozen_string_literal: true
|
|
origin = entity.position
|
|
|
|
on.entity_moved do |event|
|
|
if origin.distance3d(event.entity.position) <= 3.0
|
|
entity.position = origin + Vector.up * 2.4
|
|
else
|
|
entity.position = origin
|
|
end
|
|
end |