Public/Debugging.Helpers.ps1
function Get-ASDObjectPlayerImmortal { [CmdletBinding()] [Alias("immortal")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = $false; if($Value -eq "1"){$val = $true} if($Value -eq $true){$val = $true} Get-ASDObject -Type "BenFox.CharacterController.Benedict, BenFox.CharacterController" | Set-ASDValue -FieldPath Settings.Immortal -Value $val } else { Get-ASDObject -Type "BenFox.CharacterController.Benedict, BenFox.CharacterController" | Get-ASDValue -FieldPath Settings.Immortal } } function Get-ASDObjectStreamerLights { [CmdletBinding()] [Alias("streamLights")] Param( [Parameter()][String]$Shell, [Parameter(Position=0)][String]$Value ) if($Value) { $val = $false; if($Value -eq "1"){$val = $true} if($Value -eq $true){$val = $true} Get-ASDObject -Type "PlotTwist.SceneStreamer.StreamingManager" | Set-ASDValue -FieldPath loadLights -Value $val } else { Get-ASDObject -Type "PlotTwist.SceneStreamer.StreamingManager" | Get-ASDValue -FieldPath loadLights } } |