Navigation
API > API/Plugins > API/Plugins/MassSmartObjects > API/Plugins/MassSmartObjects/FMassSmartObjectHandler
References
| Module | MassSmartObjects |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectHandler.h |
| Include | #include "MassSmartObjectHandler.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Private/MassSmartObjectHandler.cpp |
FSmartObjectClaimHandle ClaimSmartObject
(
const FMassEntityHandle Entity,
FMassSmartObjectUserFragment & User,
const FSmartObjectRequestResult & RequestResult,
ESmartObjectClaimPriority ClaimPriority
) const
Remarks
Claims the first available slot holding any type of USmartObjectMassBehaviorDefinition in the smart object associated to the provided identifier. Whether the slot has been successfully claimed or not
Parameters
| Name | Description |
|---|---|
| Entity | MassEntity associated to the user fragment |
| User | Fragment of the user claiming |
| RequestResult | A valid smart object request result (method will ensure otherwise) |
| ClaimPriority | Claim priority, a slot claimed at lower priority can be claimed by higher priority (unless already in use). |