MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aMusicSetRegion

Function aMusicSetRegion

scripts/DallasFuncs.cpp:2399–2407  ·  view source on GitHub ↗

$$ACTION Sound && Music Set music region to [e:Region] for player [o:PlayerObject=IT] aMusicSetRegion Set music region Sets the specified region as the active region for the music system Parameters: Region: which region is now active PlayerObject: which player gets the music change $$END */

Source from the content-addressed store, hash-verified

2397$$END
2398*/
2399void aMusicSetRegion(int region_num, int objhandle) {
2400 msafe_struct mstruct;
2401
2402 mstruct.state = 0; // specific player
2403 mstruct.index = region_num;
2404 mstruct.objhandle = objhandle;
2405
2406 MSafe_CallFunction(MSAFE_MUSIC_REGION, &mstruct);
2407}
2408
2409/*
2410$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected