diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..0cf5ea5 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": "No Configurations" +} \ No newline at end of file diff --git a/.vs/VictoryPlugin/v15/Browse.VC.db b/.vs/VictoryPlugin/v15/Browse.VC.db new file mode 100644 index 0000000..cc78563 Binary files /dev/null and b/.vs/VictoryPlugin/v15/Browse.VC.db differ diff --git a/.vs/VictoryPlugin/v15/ipch/AutoPCH/aa1b11ca3ddb1150/VICTORYBPFUNCTIONLIBRARY.ipch b/.vs/VictoryPlugin/v15/ipch/AutoPCH/aa1b11ca3ddb1150/VICTORYBPFUNCTIONLIBRARY.ipch new file mode 100644 index 0000000..6e1b2e0 Binary files /dev/null and b/.vs/VictoryPlugin/v15/ipch/AutoPCH/aa1b11ca3ddb1150/VICTORYBPFUNCTIONLIBRARY.ipch differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..d30de8b Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp b/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp index db8b5ee..1f81cf5 100644 --- a/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp +++ b/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp @@ -2240,7 +2240,12 @@ void UVictoryBPFunctionLibrary::Selection_SelectionBox(UObject* WorldContextObje } } } - +//Provided by Starkium :) +void UVictoryBPFunctionLibrary::DestroyController(AController* Target) +{ + //Currently does nothing, insert code here to delete the controller or call the function in the controller. + Target->Destroy(); +} bool UVictoryBPFunctionLibrary::PlayerController_GetControllerID(APlayerController* ThePC, int32& ControllerID) { if(!ThePC) return false; diff --git a/Source/VictoryBPLibrary/Public/VictoryBPFunctionLibrary.h b/Source/VictoryBPLibrary/Public/VictoryBPFunctionLibrary.h index 98069a4..6321a4c 100644 --- a/Source/VictoryBPLibrary/Public/VictoryBPFunctionLibrary.h +++ b/Source/VictoryBPLibrary/Public/VictoryBPFunctionLibrary.h @@ -900,6 +900,11 @@ class VICTORYBPLIBRARY_API UVictoryBPFunctionLibrary : public UBlueprintFunction UFUNCTION(BlueprintCallable, Category = "Victory BP Library|Controller") static bool PlayerController_GetControllerID(APlayerController* ThePC, int32& ControllerID); + /** Work around for deleting a controller since it is disabled by default in blueprints. Provided by Starkium :) */ + + UFUNCTION(BlueprintCallable, Category = "Victory BP Library|Controller") + static void DestroyController(AController* Target); + /** Get the Unique PlayerID from the PlayerState for a supplied Player Controller. Returns false if operation could not occur. Epic accepted my pull request for this a while back so now you can just GetPlayerState and directly access <3 Rama*/ UFUNCTION(BlueprintCallable, Category = "Victory BP Library|Networking") static bool PlayerState_GetPlayerID(APlayerController* ThePC, int32& PlayerID);