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

Function aRoomSetDamage

scripts/DallasFuncs.cpp:1198–1206  ·  view source on GitHub ↗

$$ACTION Rooms Set room [r:Room] damage to [f:Damage] with sound type [e:DamageSoundType] aRoomSetDamage Set room damage Sets the sepecifed room to damage the player Parameters: Room: The room that will cause the damage Damage: the damage rate, in shield units per second $$END */

Source from the content-addressed store, hash-verified

1196$$END
1197*/
1198void aRoomSetDamage(int roomnum, float damage, int soundtype) {
1199 msafe_struct mstruct;
1200
1201 mstruct.roomnum = roomnum;
1202 mstruct.amount = damage;
1203 mstruct.index = soundtype;
1204
1205 MSafe_CallFunction(MSAFE_ROOM_DAMAGE, &mstruct);
1206}
1207
1208/*
1209$$ACTION

Callers 14

StartHealingMethod · 0.85
StopHealingMethod · 0.85
SetModeMethod · 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