s1-scripts-dev/raw/maps/mp/mp_levity_aud.gsc
2025-05-21 16:23:17 +02:00

31 lines
818 B
Plaintext

#include maps\mp\_utility;
#include common_scripts\utility;
main()
{
level thread setup_audio();
level.aud_piston_ent = [];
level.aud_piston_ent[ 1 ] = Spawn( "script_origin", ( 249, -2260, 1418 ) );
level.aud_piston_ent[ 2 ] = Spawn( "script_origin", ( 249, -1996, 1418 ) );
level.aud_piston_ent[ 3 ] = Spawn( "script_origin", ( -225, -1996, 1418 ) );
level.aud_piston_ent[ 4 ] = Spawn( "script_origin", ( -225, -2260, 1418 ) );
}
setup_audio()
{
//AmbientPlay( "amb_mp_levity_ext" );
}
event_aud(pistons)
{
playSoundAtPos((0, -2225, 1311), "mp_levity_hanger_door_verb");
playSoundAtPos((0, -2225, 1311), "mp_levity_hanger_door");
//wait(0.8);
// foreach ( piston_ent in level.aud_piston_ent )
// {
// level.aud_piston_ent thread play_loop_sound_on_entity ("mp_levity_hanger_mech_piston");
// }
}