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

Function aDestroyAllRobotsSpareType

scripts/DallasFuncs.cpp:4611–4621  ·  view source on GitHub ↗

$$ACTION Objects Destroy All Robots: Spare robots of this type [a:RobotID] aDestroyAllRobotsSpareType Spares any robot that has if of the species given (i.e. Tubbs) Parameters: RobotID - the name of the group of robots to Spare $$END */

Source from the content-addressed store, hash-verified

4609$$END
4610*/
4611void aDestroyAllRobotsSpareType(const char *name) {
4612 int id = Obj_FindID(name);
4613
4614 if (id != -1) {
4615 tKillObjectItem item;
4616 item.info_type = KOI_ID;
4617 item.id = id;
4618
4619 KillRobotList.add(&item);
4620 }
4621}
4622
4623/*
4624$$ACTION

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected