mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
2.4.2 & zone times proper
This commit is contained in:
@@ -246,6 +246,25 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
|
||||
else if (Command == "spawnaidata")
|
||||
{
|
||||
|
||||
}
|
||||
else if (Command == "sethealth")
|
||||
{
|
||||
auto Pawn = ReceivingController->GetMyFortPawn();
|
||||
|
||||
if (!Pawn)
|
||||
{
|
||||
SendMessageToConsole(PlayerController, L"No pawn!");
|
||||
return;
|
||||
}
|
||||
|
||||
float Health = 100.f;
|
||||
|
||||
try { Health = std::stof(Arguments[1]); }
|
||||
catch (...) {}
|
||||
|
||||
static auto SetHealthFn = FindObject<UFunction>("/Script/FortniteGame.FortPawn.SetHealth");
|
||||
Pawn->ProcessEvent(SetHealthFn, &Health);
|
||||
SendMessageToConsole(PlayerController, L"Set health!\n");
|
||||
}
|
||||
else if (Command == "testspawn")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user