Updated TurnBaseCombat to Reference Actors
Grabs all actors active within scene
This commit is contained in:
		
							parent
							
								
									5907d5dbe8
								
							
						
					
					
						commit
						bea0e1b735
					
				| @ -17,7 +17,7 @@ ManualIPAddress= | ||||
| +ActiveGameNameRedirects=(OldGameName="TP_ThirdPerson",NewGameName="/Script/the_twilight_abyss") | ||||
| 
 | ||||
| [/Script/EngineSettings.GameMapsSettings] | ||||
| EditorStartupMap=/Engine/Maps/Templates/OpenWorld.OpenWorld | ||||
| EditorStartupMap=/Game/Levels/Main.Main | ||||
| LocalMapOptions= | ||||
| TransitionMap=None | ||||
| bUseSplitscreen=True | ||||
| @ -26,7 +26,7 @@ ThreePlayerSplitscreenLayout=FavorTop | ||||
| FourPlayerSplitscreenLayout=Grid | ||||
| bOffsetPlayerGamepadIds=False | ||||
| GameInstanceClass=/Script/Engine.GameInstance | ||||
| GameDefaultMap=/Engine/Maps/Templates/OpenWorld.OpenWorld | ||||
| GameDefaultMap=/Game/Levels/Main.Main | ||||
| ServerDefaultMap=/Engine/Maps/Entry.Entry | ||||
| GlobalDefaultGameMode=/Game/GameMode/MainGameMode.MainGameMode_C | ||||
| GlobalDefaultServerGameMode=None | ||||
|  | ||||
							
								
								
									
										31
									
								
								Config/HoloLens/HoloLensEngine.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								Config/HoloLens/HoloLensEngine.ini
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | ||||
| 
 | ||||
| 
 | ||||
| [/Script/HoloLensPlatformEditor.HoloLensTargetSettings] | ||||
| bBuildForEmulation=False | ||||
| bBuildForDevice=True | ||||
| bUseNameForLogo=True | ||||
| bBuildForRetailWindowsStore=False | ||||
| bAutoIncrementVersion=False | ||||
| bShouldCreateAppInstaller=False | ||||
| AppInstallerInstallationURL= | ||||
| HoursBetweenUpdateChecks=0 | ||||
| bEnablePIXProfiling=False | ||||
| TileBackgroundColor=(B=64,G=0,R=0,A=255) | ||||
| SplashScreenBackgroundColor=(B=64,G=0,R=0,A=255) | ||||
| +PerCultureResources=(CultureId="",Strings=(PackageDisplayName="",PublisherDisplayName="",PackageDescription="",ApplicationDisplayName="",ApplicationDescription=""),Images=()) | ||||
| TargetDeviceFamily=Windows.Holographic | ||||
| MinimumPlatformVersion= | ||||
| MaximumPlatformVersionTested=10.0.22000.0 | ||||
| MaxTrianglesPerCubicMeter=500.000000 | ||||
| SpatialMeshingVolumeSize=20.000000 | ||||
| CompilerVersion=Default | ||||
| Windows10SDKVersion=10.0.18362.0 | ||||
| +CapabilityList=internetClientServer | ||||
| +CapabilityList=privateNetworkClientServer | ||||
| +Uap2CapabilityList=spatialPerception | ||||
| bSetDefaultCapabilities=False | ||||
| SpatializationPlugin= | ||||
| ReverbPlugin= | ||||
| OcclusionPlugin= | ||||
| SoundCueCookQualityIndex=-1 | ||||
| 
 | ||||
| @ -2,13 +2,14 @@ | ||||
| 
 | ||||
| 
 | ||||
| #include "TurnBaseCombat.h" | ||||
| #include "Kismet/GameplayStatics.h" | ||||
| 
 | ||||
| void ATurnBaseCombat::BeginPlay() | ||||
| { | ||||
| 	Super::BeginPlay(); | ||||
| 
 | ||||
| 	TArray<AActor*> AllCharacterActorsInScene; | ||||
| 	UGameplayStatics::GetAllActorsOfClassWithTag(GetWorld(), AActor::StaticClass(), FName("Character"), AllCharacterActorsInScene); | ||||
| 	activeActionPoints = defaultActionPoints; | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| void ATurnBaseCombat::useActionPoint() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user