Meteor 2 Scripting Functions
PDA
bool getPdaOpen()
Deterine if the PDA tablet is currently open.
if(getPdaOpen())
print("PDA is open");
else
print("PDA is not open");
void setPdaOpen(bool open)
Open or close the PDA tablet on the local computer.
setPdaOpen(true);
bool addPdaMessage(string subject, string message)
Add message to the PDA tablet on the local computer.
addPdaMessage("Test Message", "This is a test message\nThis is line 2");
If a message with the subject already exists then the message is not added.
This function does not open the PDA. Use setPdaOpen(true) to display the message immediately.
void loadPdaMessage(string sectionName, bool showPda)
Load a PDA message from the current briefing file (MapName.txt).
addPdaMessage("my_message_id", true);
PDA messages are stored in MapName.txt (same name as current map with .txt extension).
For example:
[message_id]
subject=Subject here
Blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah.
void removePdaMessage(string subject)
Remove a message from the PDA tablet on the local computer.
removePdaMessage("Test Message");
void clearAllPdaMessages()
Remove all messages from the PDA tablet on the local computer.
float getPdaBatteryLevel()
Get the PDA battery level.
print(getPdaBatteryLevel());
void setPdaBatteryLevel(float level)
Set the PDA battery level.
setPdaBatteryLevel(50);
Setting the battery level to 0 will effectively disable the PDA.
The level is automatically clamped between 0 and 100.
bool getPdaSignalOn()
Get the PDA signal/uplink status.
print(getPdaSignalOn());
void setPdaSignalOn(bool on)
Set the PDA signal/uplink status.
setPdaSignalOn(false);
This affects signal status the icon shown within the PDA and is for visual effect only. The PDA will still function normally.
Index
Generated on the 23 November 2024 at 08:20:43 (UK Time)