Dragdrop fold rollerbed (#30002)

* Deploy foldable

* Add NetworkedComponent and access to the component

* Add handled to afterinteract

* Use drop target location instead of setcoordinates

* Put back in hand after failed deploy

This prevents dropping the bed when clicking while inside a locker.

* Created BaseDeployFoldable for folding chairs, body bags, and rollerbeds

* Add dragdrop to fold rollerbed to hand
This commit is contained in:
ShadowCommander
2024-08-07 02:19:10 -07:00
committed by GitHub
parent d86438c22b
commit 6a5cc883ce
3 changed files with 42 additions and 5 deletions

View File

@@ -518,6 +518,9 @@ public sealed class DragDropSystem : SharedDragDropSystem
if (dropEv2.Handled)
return dropEv2.CanDrop;
if (dropEv.Handled && dropEv.CanDrop)
return true;
return null;
}