$$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 */
| 4609 | $$END |
| 4610 | */ |
| 4611 | void 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 |