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