Org.GetType
Skip to content
mnscript
string Org.GetType() 

Description ​

Gets the org type

Returns ​

string - The org type

Example ​

msc
using Org;
using Console;
using Player;
using System;

// Finds the org of the player using the computer and shows the type.

Player user = System.GetUser();
Org org = Org.GetOrg(user);

if(org.IsValid()){
    // The org is valid, which means it exists.

    string orgType = org.GetType();
    Console.WriteLine("The org type is: "..orgType);
}