ULimenHoldComponent
Overview
ULimenHoldComponent is an actor component that allows actors to hold and release other actors. It handles replication of the held item across the network, ensuring that all clients are aware of the current state of what is being held. The component provides public functions for holding and stopping the hold, as well as checking if something is currently being held.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| Current | Private | The current actor being held. |
| Previous | Private | The previous actor that was held before the current one. |
Functions
Return Type | Signature | Description |
|---|---|---|
|
| Registers properties to be replicated across the network. |
|
| Starts holding an actor. |
|
| Stops holding any currently held actor. |
|
| Checks if something is currently being held. |
|
| Returns the current actor being held. |
Usage & Implementation Notes
Replication: The component uses replication to ensure that all clients are aware of the current state of what is being held.
Network Prediction: Network prediction is used for the
HoldandStopHoldingfunctions to improve performance by predicting the outcome on the client side before it is confirmed by the server.