iimurpyh / pilot-lua

Documentation for the programming language of ROBLOX game Waste of Space
22 stars 0 forks source link

BlackBox:GetLogs() Missing #12

Closed xBarkDog closed 1 year ago

xBarkDog commented 1 year ago

what it gives image

how to use BlackBox:GetLogs()

code example

local BlackBox = GetPartFromPort(1, "BlackBox")

Logs = BlackBox:GetLogs()
print(Logs)
Logs_D = JSONEncode(Logs)
print(Logs_D)
DarkBlueStealth commented 1 year ago

Did you try this in unstable? I get an error when I use it in stable. Edit: there was something wrong with My setup

xBarkDog commented 1 year ago

Should probably be a note on the page that the blackbox spawns with smooth faces on all its sides because i had the same problem (in unstable too)

hail12pink commented 1 year ago

BlackBox:GetLogs() { Desc (the description of the event) Event (the name of the event TimeAgo (time since in seconds) }

hail12pink commented 1 year ago

i'll add this when i figure out all of the event types

xBarkDog commented 1 year ago

hexcede made a list of all the events image

hail12pink commented 1 year ago

A part that logs information about the region it is in while active.

Table of contents

Methods


RegionLog BlackBox:GetLogs()

Returns a [[RegionLog]].

hail12pink commented 1 year ago

Logged event history of a region.

Table of contents

Properties

string Event

The type of event. (HyperDrive, Aliens, Spawned, Death, ExitRegion, Poison, Irradiated, Suffocating, Freezing, Melting)

string Desc

Full description of the event.

number TimeAgo

The time that has passed since the event has taken place.

hail12pink commented 1 year ago

https://github.com/iimurpyh/pilot-lua/wiki/BlackBox https://github.com/iimurpyh/pilot-lua/wiki/RegionLog