Example #1
0
        protected void UpdateParams()
        {
            Dictionary <string, dynamic> d = MtaShared.GetDictionaryFromTable(MtaShared.GetVehicleSirenParams(vehicle.MTAElement), "System.String", "dynamic");

            type = (SirenType)d["SirenType"];
            Dictionary <string, bool> flags = MtaShared.GetDictionaryFromTable(d["Flags"], "System.String", "System.Boolean");

            visibleFromAllDirection = flags["360"];
            checkLOS      = flags["DoLOSCheck"];
            useRandomiser = flags["UseRandomiser"];
            silent        = flags["Silent"];
        }