This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xg:class:sound [2019-11-26 08:53] – [Sound (XG class)] skyjake | xg:class:sound [2019-11-26 08:53] (current) – [Parameters] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Sound (XG class) ====== | ||
+ | |||
+ | |||
+ | Class = sound | ||
+ | |||
+ | Plays a sound in one or more sectors. | ||
+ | |||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | |||
+ | ^ Prm^ Name^ Type^ Meaning | | ||
+ | | Ip0,Ip1| Target Ref, | ||
+ | | Ip2| Sound ID| [[ded: | ||
+ | | Ip3| Origin| Integer| If non-zero, play the sound from a specific origin within the referenced sector (1=floor, 2=ceiling) else play from the center. | | ||
+ | |||
+ | |||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | | ||
+ | Line Type { | ||
+ | ID = 5026 | ||
+ | Comment = "Play switch sound when player crosses line in the sector on the front side of the line" | ||
+ | Class = sound | ||
+ | Flags = player_cross | ||
+ | Flags2 = when_act | any | ||
+ | Count = 1 | ||
+ | Target Ref = " | ||
+ | Sound ID = " | ||
+ | } | ||
+ | |||
+ | Creates a line which, when crossed, plays the switch sound (Sound ID = " | ||
+ | |||
+ | |||