Esempio n. 1
0
        public override void Load()
        {
            base.Load();

            // Add Fourth Reich FalseId to inventory if player already haven't got one
            //MyScriptWrapper.AddFalseIdToPlayersInventory(MyMwcObjectBuilder_FactionEnum.FourthReich);

            // Set musicmood right from script start
            MyScriptWrapper.ApplyTransition(MyMusicTransitionEnum.DesperateWithStress);

            // Change player faction to Rainiers and set relations between them
            MyScriptWrapper.SetPlayerFaction(MyMwcObjectBuilder_FactionEnum.Rainiers);
            MyScriptWrapper.SetFactionRelation(MyMwcObjectBuilder_FactionEnum.Rainiers, MyMwcObjectBuilder_FactionEnum.Euroamerican, MyFactions.RELATION_WORST);
            MyScriptWrapper.SetFactionRelation(MyMwcObjectBuilder_FactionEnum.Euroamerican, MyMwcObjectBuilder_FactionEnum.Rainiers, MyFactions.RELATION_WORST);
            MyScriptWrapper.FixBotNames();

            MyScriptWrapper.TryHide((uint)EntityID.TurretAutodescrut1);
            MyScriptWrapper.TryHide((uint)EntityID.TurretAutodescrut2);
            MyScriptWrapper.TryHide((uint)EntityID.TurretAutodescrut3);
            MyScriptWrapper.TryHide((uint)EntityID.TurretAutodescrut4);

            MyScriptWrapper.TryHide((uint)EntityID.CargoRepair);

            // Add hacking tool to inventory if player already haven't got one
            MyScriptWrapper.AddHackingToolToPlayersInventory(2);


            MyScriptWrapper.EntityDeath += MyScriptWrapper_EntityDeath;
        }