FINISHED DAMN DROP SYSTEM

This commit is contained in:
Rendo 2025-11-28 18:03:30 +05:00
commit 100afe5e51
17 changed files with 151 additions and 25 deletions

View file

@ -2,6 +2,14 @@ extends RigidBody3D
class_name DroppableWeapon
const IMPULSE = 10
@export var slot: StringName
@export var weapon: WeaponSubStateMachine
@export var team: Session.TEAMS
@rpc("any_peer","call_local","reliable")
func drop(direction: Vector3,new_position: Vector3):
apply_impulse(direction * IMPULSE)
global_position = new_position