|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Subsystem that holds all registered smart object instances and offers the API for spatial queries and reservations. More...
Public Member Functions | |
SmartObject | |
| bool | GetSlotTransformFromRequestResult (FSmartObjectRequestResult RequestResult, FTransform &OutSlotTransform) const |
| Returns the transform (in world space) of the slot associated to the given RequestResult. | |
| void | AddTagToSlot (const FSmartObjectSlotHandle SlotHandle, FGameplayTag Tag) |
| Adds a single tag to the smart object slot represented by the provided handle. | |
| FSmartObjectClaimHandle | Claim (FSmartObjectRequestResult RequestResult, const AActor UserActor=nullptr) |
| FSmartObjectRequestResult | FindSmartObject (FSmartObjectRequest Request, const AActor UserActor=nullptr) const |
| Spatial lookup for first slot in range respecting request criteria and selection conditions. | |
| bool | FindSmartObjects (FSmartObjectRequest Request, TArray< FSmartObjectRequestResult > &OutResults, const AActor UserActor=nullptr) const |
| bool | FindSmartObjects_BP (FSmartObjectRequest Request, TArray< FSmartObjectRequestResult > &OutResults, const AActor UserActor=nullptr) const |
| Blueprint function for spatial lookup for slot candidates respecting request criteria and selection conditions. | |
| void | GetAllSlots (const FSmartObjectHandle Handle, TArray< FSmartObjectSlotHandle > &OutSlots) const |
| Return all slots of a given smart object. | |
| const USmartObjectBehaviorDefinition | GetBehaviorDefinition (FSmartObjectClaimHandle ClaimHandle, TSubclassOf< USmartObjectBehaviorDefinition > DefinitionClass) |
| Return the behavior definition of a given type from a claimed object. | |
| const USmartObjectBehaviorDefinition | GetBehaviorDefinitionByRequestResult (FSmartObjectRequestResult RequestResult, TSubclassOf< USmartObjectBehaviorDefinition > DefinitionClass) |
| Return the behavior definition of a given type from a request result. | |
| const FGameplayTagContainer & | GetInstanceTags (const FSmartObjectHandle Handle) const |
| Returns the list of tags associated to the smart object instance represented by the provided handle. | |
| bool | GetSlotLocation (FSmartObjectClaimHandle ClaimHandle, FVector &OutSlotLocation) const |
| Returns the position (in world space) of the slot associated to the given claim handle. | |
| ESmartObjectSlotState | GetSlotState (const FSmartObjectSlotHandle SlotHandle) const |
| Returns the state of the given Smart Object Slot handle. | |
| const FGameplayTagContainer & | GetSlotTags (const FSmartObjectSlotHandle SlotHandle) const |
| Returns the list of tags associated to the smart object slot represented by the provided handle. | |
| bool | GetSlotTransform (FSmartObjectClaimHandle ClaimHandle, FTransform &OutSlotTransform) const |
| Returns the transform (in world space) of the slot associated to the given claim handle. | |
| void | AddTagToInstance (const FSmartObjectHandle Handle, FGameplayTag Tag) |
| Adds a single tag to the smart object instance represented by the provided handle. | |
| USmartObjectComponent | GetSmartObjectComponent (FSmartObjectClaimHandle ClaimHandle, ETrySpawnActorIfDehydrated TrySpawnActorIfDehydrated=ETrySpawnActorIfDehydrated ::No) const |
| Returns the component associated to the claim handle if still accessible. In some scenarios the component may no longer exist but its smart object data could (e.g. streaming). | |
| USmartObjectComponent | GetSmartObjectComponentByRequestResult (FSmartObjectRequestResult Result, ETrySpawnActorIfDehydrated TrySpawnActorIfDehydrated=ETrySpawnActorIfDehydrated ::No) const |
| Returns the component associated to the given request result In some scenarios the component may no longer exist but its smart object data could (e.g. streaming). | |
| bool | IsEnabled (const FSmartObjectHandle Handle) const |
| Returns the enabled state of the smart object represented by the provided handle regardless of the disabled reason. | |
| bool | IsEnabledForReason (const FSmartObjectHandle Handle, FGameplayTag ReasonTag) const |
| Returns the enabled state of the smart object represented by the provided handle based on a specific reason. | |
| bool | Release (FSmartObjectClaimHandle ClaimHandle) |
| void | RemoveTagFromInstance (const FSmartObjectHandle Handle, FGameplayTag Tag) |
| Removes a single tag from the smartobject instance represented by the provided handle. | |
| bool | RemoveTagFromSlot (const FSmartObjectSlotHandle SlotHandle, FGameplayTag Tag) |
| Removes a single tag from the smart object slot represented by the provided handle. | |
| bool | SetEnabled (const FSmartObjectHandle Handle, bool bEnabled) |
| Enables or disables the entire smart object represented by the provided handle using the default reason (i.e. Gameplay).. Delegate 'OnEvent' is broadcasted with ESmartObjectChangeReason::OnEnabled/ESmartObjectChangeReason::OnDisabled if state changed. | |
| bool | SetEnabledForReason (const FSmartObjectHandle Handle, FGameplayTag ReasonTag, bool bEnabled) |
| Enables or disables the entire smart object represented by the provided handle using the specified reason. Delegate 'OnEvent' is broadcasted with ESmartObjectChangeReason::OnEnabled/ESmartObjectChangeReason::OnDisabled if state changed. | |
| bool | SetSlotEnabled (const FSmartObjectSlotHandle SlotHandle, bool bEnabled) |
| Enables or disables the smart object slot represented by the provided handle. | |
| const USmartObjectBehaviorDefinition | Use (FSmartObjectClaimHandle ClaimHandle, TSubclassOf< USmartObjectBehaviorDefinition > DefinitionClass) |
| Public Member Functions inherited from UObject | |
| bool | MarkPackageDirty () const |
| void | RemoveFromRoot () |
| bool | GetIsRooted () const |
| bool | IsTransient () const |
| bool | Modify (bool bAlwaysMarkDirty=true) |
| void | SetTransactional (bool bTransactional) |
| bool | IsSupportedForNetworking () const |
| UClass | GetClass () const |
| UObject | GetOuter () const |
| UObject | GetTypedOuter (TSubclassOf< UObject > Target) const |
| Traverses the outer chain searching for the next object of a certain type. | |
| UPackage | GetOutermost () const |
| UPackage | GetPackage () const |
| void | AddToRoot () |
| UWorld | GetWorld () const |
| FName | GetName () const |
| FString | GetFullName (const UObject StopOuter=nullptr) const |
| FString | GetPathName (const UObject StopOuter=nullptr) const |
| bool | IsA (const UClass Class) const |
| Returns true if this object is of the specified type, or a child of that type. | |
| void | SaveConfig () |
| void | LoadConfig () |
| void | ReloadConfig () |
| void | CopyScriptPropertiesFrom (const UObject OtherObject) |
| void | opCast (?&Address) const |
| FString | ToString () const |
Static Public Member Functions | |
Static Functions | |
| static USmartObjectSubsystem | Get () |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UWorldSubsystem | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from USubsystem | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UObject | |
| static UClass | StaticClass () |
Additional Inherited Members | |
| Public Attributes inherited from UObject | |
| const UClass | Class |
| const UObject | Outer |
| const UPackage | Outermost |
| const UPackage | Package |
| const UWorld | World |
| const FName | Name |
| const bool | IsRooted |
Subsystem that holds all registered smart object instances and offers the API for spatial queries and reservations.
| void AddTagToInstance | ( | const FSmartObjectHandle | Handle, |
| FGameplayTag | Tag ) |
Adds a single tag to the smart object instance represented by the provided handle.
| Handle | Handle to the smart object. |
| Tag | Tag to add to the smart object instance. |
| void AddTagToSlot | ( | const FSmartObjectSlotHandle | SlotHandle, |
| FGameplayTag | Tag ) |
Adds a single tag to the smart object slot represented by the provided handle.
| SlotHandle | Handle to the smart object slot. |
| Tag | Tag to add to the smart object slot. |
| FSmartObjectClaimHandle Claim | ( | FSmartObjectRequestResult | RequestResult, |
| const AActor | UserActor = nullptr ) |
| FSmartObjectRequestResult FindSmartObject | ( | FSmartObjectRequest | Request, |
| const AActor | UserActor = nullptr ) const |
Spatial lookup for first slot in range respecting request criteria and selection conditions.
| Request | Parameters defining the search area and criteria |
| UserActor | Actor claiming the smart object used to evaluate selection conditions |
| bool FindSmartObjects | ( | FSmartObjectRequest | Request, |
| TArray< FSmartObjectRequestResult > & | OutResults, | ||
| const AActor | UserActor = nullptr ) const |
| bool FindSmartObjects_BP | ( | FSmartObjectRequest | Request, |
| TArray< FSmartObjectRequestResult > & | OutResults, | ||
| const AActor | UserActor = nullptr ) const |
Blueprint function for spatial lookup for slot candidates respecting request criteria and selection conditions.
| Request | Parameters defining the search area and criteria |
| OutResults | List of smart object slot candidates |
| UserActor | Actor claiming the smart object |
|
static |
| void GetAllSlots | ( | const FSmartObjectHandle | Handle, |
| TArray< FSmartObjectSlotHandle > & | OutSlots ) const |
Return all slots of a given smart object.
| Handle | Handle to the smart object. |
| OutSlots | All slots of the smart object |
| const USmartObjectBehaviorDefinition GetBehaviorDefinition | ( | FSmartObjectClaimHandle | ClaimHandle, |
| TSubclassOf< USmartObjectBehaviorDefinition > | DefinitionClass ) |
Return the behavior definition of a given type from a claimed object.
| ClaimHandle | Handle to a claimed slot returned by any of the Claim methods. |
| DefinitionClass | The type of behavior definition. |
| const USmartObjectBehaviorDefinition GetBehaviorDefinitionByRequestResult | ( | FSmartObjectRequestResult | RequestResult, |
| TSubclassOf< USmartObjectBehaviorDefinition > | DefinitionClass ) |
Return the behavior definition of a given type from a request result.
| RequestResult | A request result returned by any of the Find methods. |
| DefinitionClass | The type of behavior definition. |
| const FGameplayTagContainer & GetInstanceTags | ( | const FSmartObjectHandle | Handle | ) | const |
Returns the list of tags associated to the smart object instance represented by the provided handle.
| Handle | Handle to the smart object. |
| bool GetSlotLocation | ( | FSmartObjectClaimHandle | ClaimHandle, |
| FVector & | OutSlotLocation ) const |
Returns the position (in world space) of the slot associated to the given claim handle.
| ClaimHandle | Handle to a claimed slot returned by any of the Claim methods. |
| OutSlotLocation | Position (in world space) of the slot associated to ClaimHandle. |
| ESmartObjectSlotState GetSlotState | ( | const FSmartObjectSlotHandle | SlotHandle | ) | const |
Returns the state of the given Smart Object Slot handle.
| const FGameplayTagContainer & GetSlotTags | ( | const FSmartObjectSlotHandle | SlotHandle | ) | const |
Returns the list of tags associated to the smart object slot represented by the provided handle.
| SlotHandle | Handle to the smart object slot. |
| bool GetSlotTransform | ( | FSmartObjectClaimHandle | ClaimHandle, |
| FTransform & | OutSlotTransform ) const |
Returns the transform (in world space) of the slot associated to the given claim handle.
| ClaimHandle | Handle to a claimed slot returned by any of the Claim methods. |
| OutSlotTransform | Transform (in world space) of the slot associated to ClaimHandle. |
| bool GetSlotTransformFromRequestResult | ( | FSmartObjectRequestResult | RequestResult, |
| FTransform & | OutSlotTransform ) const |
Returns the transform (in world space) of the slot associated to the given RequestResult.
| RequestResult | Result returned by any of the Find Smart Object(s) methods. |
| OutSlotTransform | Transform (in world space) of the slot associated to the RequestResult. |
| USmartObjectComponent GetSmartObjectComponent | ( | FSmartObjectClaimHandle | ClaimHandle, |
| ETrySpawnActorIfDehydrated | TrySpawnActorIfDehydrated = ETrySpawnActorIfDehydrated :: No ) const |
Returns the component associated to the claim handle if still accessible. In some scenarios the component may no longer exist but its smart object data could (e.g. streaming).
| ClaimHandle | Handle to a claimed slot returned by any of the Claim methods. |
| TrySpawnActorIfDehydrated | Indicates if the subsystem should try to spawn the actor/component associated to the smartobject if it is currently owned by an instanced actor. |
| USmartObjectComponent GetSmartObjectComponentByRequestResult | ( | FSmartObjectRequestResult | Result, |
| ETrySpawnActorIfDehydrated | TrySpawnActorIfDehydrated = ETrySpawnActorIfDehydrated :: No ) const |
Returns the component associated to the given request result In some scenarios the component may no longer exist but its smart object data could (e.g. streaming).
| Result | A request result returned by any of the Find methods . |
| TrySpawnActorIfDehydrated | Indicates if the subsystem should try to spawn the actor/component associated to the smartobject if it is currently owned by an instanced actor. |
| bool IsEnabled | ( | const FSmartObjectHandle | Handle | ) | const |
Returns the enabled state of the smart object represented by the provided handle regardless of the disabled reason.
| Handle | Handle to the smart object. |
| bool IsEnabledForReason | ( | const FSmartObjectHandle | Handle, |
| FGameplayTag | ReasonTag ) const |
Returns the enabled state of the smart object represented by the provided handle based on a specific reason.
| Handle | Handle to the smart object. |
| ReasonTag | Valid Tag to test if enabled for a specific reason. Method will ensure if not valid (i.e. None). |
| bool Release | ( | FSmartObjectClaimHandle | ClaimHandle | ) |
| void RemoveTagFromInstance | ( | const FSmartObjectHandle | Handle, |
| FGameplayTag | Tag ) |
Removes a single tag from the smartobject instance represented by the provided handle.
| Handle | Handle to the smart object. |
| Tag | Tag to remove from the SmartObject instance. |
| bool RemoveTagFromSlot | ( | const FSmartObjectSlotHandle | SlotHandle, |
| FGameplayTag | Tag ) |
Removes a single tag from the smart object slot represented by the provided handle.
| SlotHandle | Handle to the smart object slot. |
| Tag | Tag to remove from the smart object slot. |
| bool SetEnabled | ( | const FSmartObjectHandle | Handle, |
| bool | bEnabled ) |
Enables or disables the entire smart object represented by the provided handle using the default reason (i.e. Gameplay).. Delegate 'OnEvent' is broadcasted with ESmartObjectChangeReason::OnEnabled/ESmartObjectChangeReason::OnDisabled if state changed.
| Handle | Handle to the smart object. |
| bEnabled | If true enables the smart object, disables otherwise. |
| bool SetEnabledForReason | ( | const FSmartObjectHandle | Handle, |
| FGameplayTag | ReasonTag, | ||
| bool | bEnabled ) |
Enables or disables the entire smart object represented by the provided handle using the specified reason. Delegate 'OnEvent' is broadcasted with ESmartObjectChangeReason::OnEnabled/ESmartObjectChangeReason::OnDisabled if state changed.
| Handle | Handle to the smart object. |
| ReasonTag | Valid Tag to specify the reason for changing the enabled state of the object. Method will ensure if not valid (i.e. None). |
| bEnabled | If true enables the smart object, disables otherwise. |
| bool SetSlotEnabled | ( | const FSmartObjectSlotHandle | SlotHandle, |
| bool | bEnabled ) |
Enables or disables the smart object slot represented by the provided handle.
| SlotHandle | Handle to the smart object slot. |
| bEnabled | If true enables the slot, if false, disables the slot. |
|
static |
| const USmartObjectBehaviorDefinition Use | ( | FSmartObjectClaimHandle | ClaimHandle, |
| TSubclassOf< USmartObjectBehaviorDefinition > | DefinitionClass ) |