コード例 #1
0
        // Function from file: step_triggers.dm
        public override bool Trigger(Ent_Dynamic A = null)
        {
            dynamic T = null;

            T = GlobalFuncs.get_turf(A);

            if (!Lang13.Bool(T))
            {
                return(false);
            }

            if (this.triggerer_only)
            {
                A.playsound_local(T, this.sound, this.volume, this.freq_vary);
            }
            else
            {
                GlobalFuncs.playsound(T, this.sound, this.volume, this.freq_vary, this.extra_range);
            }

            if (this.happens_once)
            {
                GlobalFuncs.qdel(this);
            }
            return(false);
        }