|
|
A Demo Project for the UnrealEngineSDK
|
UCLASS(BlueprintType, Blueprintable, meta = (ShowWorldContexPin)) More...
#include <StoryScript.h>
Public Member Functions | |
| void | ExecuteScript (AActor *Instigator) |
| Executes the script logic. Will be called by all actors active on current step. | |
| void | GetAllActorsOfClass (TSubclassOf< AActor > ActorClass, TArray< AActor * > &OutActors) |
| Analogue to engine functions GetAllActorsOfClass. | |
| void | ScriptInitialization () |
| UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Script") | |
| ABaseStoryActor * | SpawnStoryActorWithSpecificSteps (TSubclassOf< ABaseStoryActor > ActorClass, FTransform SpawnTransform, TArray< FText > ActiveSteps, TArray< FText > HighlightSteps) |
| Spawns a story actor with specific steps. | |
Public Attributes | |
| AActor * | CurrentInstigator |
| UPROPERTY(BlueprintReadWrite, Category = "Script") | |
| UGameManager * | GameManagerRef |
| UPROPERTY(BlueprintReadWrite, Category = "Script") | |
| AGameModeBase * | GameModeRef |
| UPROPERTY(BlueprintReadWrite, Category = "Script") | |
| APawn * | PlayerPawnRef |
| UPROPERTY(BlueprintReadWrite, Category = "Script") | |
Private Member Functions | |
| GENERATED_BODY () | |
UCLASS(BlueprintType, Blueprintable, meta = (ShowWorldContexPin))
This class responsible for holding step related logic, used in GameManager
Definition at line 102 of file StoryScript.h.
|
BlueprintNativeEventBlueprintCallable |
Executes the script logic. Will be called by all actors active on current step.
| Instigator | The actor instigating the script execution. |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Script")
|
private |
|
BlueprintCallable |
Analogue to engine functions GetAllActorsOfClass.
| ActorClass | The actor class that we searching for. |
| OutActors | - Array of actors that were found. |
UFUNCTION(BlueprintCallable, Category = "Script")
Definition at line 25 of file StoryScript.cpp.
|
BlueprintNativeEventBlueprintCallable |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Script")
|
BlueprintCallable |
Spawns a story actor with specific steps.
| ActorClass | The class of the story actor to spawn. |
| SpawnTransform | The transform at which to spawn the actor. |
| ActiveSteps | The active steps for the spawned actor. |
| HighlightSteps | The steps when the spawned actor should highlight. |
UFUNCTION(BlueprintCallable)
Definition at line 33 of file StoryScript.cpp.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "Script")
The current instigator of the script.
Definition at line 140 of file StoryScript.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "Script")
Definition at line 152 of file StoryScript.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "Script")
Definition at line 146 of file StoryScript.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "Script")
Definition at line 158 of file StoryScript.h.