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

Function aABSetScenarioIDs

scripts/Merc4.cpp:661–672  ·  view source on GitHub ↗

$$ACTION Custom For [o:Alien Boss], set [o:Nest], [r:Left Hide Room], [r:Right Hide Room] aABSetScenarioIDs Sets Alien Boss' Scenario IDs Parameters: Alien Boss: the alien boss Nest: the nest object Left Hide Room: room to hide from thruster on left Right Hide Room: room to hide from thruster on the right $$END */

Source from the content-addressed store, hash-verified

659$$END
660*/
661void aABSetScenarioIDs(int obj_handle, int nest_handle, int left_hide_room, int right_hide_room) {
662 ab_scenario_ids ids;
663
664 if (!qObjExists(obj_handle))
665 return;
666
667 ids.nest_handle = nest_handle;
668 ids.left_hide_room = left_hide_room;
669 ids.right_hide_room = right_hide_room;
670
671 SendCommand(obj_handle, obj_handle, AB_COM_SET_SCENARIO_IDS, &ids);
672}
673
674/*
675$$QUERY

Callers 1

CallEventMethod · 0.85

Calls 2

qObjExistsFunction · 0.85
SendCommandFunction · 0.85

Tested by

no test coverage detected