EQuestSystemQuality

v1.0
View as Markdown

EQuestSystemQuality belongs to the QuestSystem runtime module.

Adipiscing excepteur excepteur consequat irure sint ea exercitation fugiat ex sed enim cillum incididunt. Sit fugiat cillum lorem dolore incididunt ipsum elit fugiat in in. Irure aute reprehenderit labore nostrud sint fugiat magna exercitation et. Labore occaecat pariatur magna aute minim veniam nulla ea aliquip ullamco tempor commodo et elit. Minim veniam cillum voluptate quis ea quis irure nisi.

Declaration

 1UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
 2class QUEST_SYSTEM_API UMyComponent : public UActorComponent
 3{
 4    GENERATED_BODY()
 5
 6public:
 7    UMyComponent();
 8
 9    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
10    float UpdateInterval = 0.1f;
11
12    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
13    bool bAutoActivate = true;
14
15    UFUNCTION(BlueprintCallable, Category = "QuestSystem")
16    void SetConfiguration(const FMyConfig& Config);
17
18protected:
19    virtual void BeginPlay() override;
20    virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
21
22private:
23    FMyConfig CurrentConfig;
24    float TimeSinceLastUpdate = 0.0f;
25};

Members

Function Return Type Description
Initialize() void Set up the subsystem
Query(Params) bool Execute a spatial query
GetState() EMyState Return current state
Reset() void Reset to default state
SetConfig(Config) void Apply a configuration

Example

 1Blueprint Setup:
 21. Open your Actor Blueprint
 32. Add Component > search "My Plugin Component"
 43. In the Details panel, set:
 5   - Update Interval: 0.1
 6   - Auto Activate: true
 7   - Max Instances: 50
 84. Connect the OnStateChanged event to your handler
 95. Compile and Save the Blueprint