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

Function aStripWeaponsEnergy

scripts/DallasFuncs.cpp:4731–4734  ·  view source on GitHub ↗

$$ACTION Players Strip all weapons and energy from player [o:Object] aStripWeaponsEnergy Removes all weapons (but lasers) and ammo, and reduces energy to 0. $$END */

Source from the content-addressed store, hash-verified

4729$$END
4730*/
4731void aStripWeaponsEnergy(int Object) {
4732 int val = 0;
4733 Player_Value(Object, VF_SET, PLYV_I_STRIP_WEAPONS, &val);
4734}
4735
4736/*
4737$$ACTION

Callers

nothing calls this directly

Calls 1

Player_ValueFunction · 0.85

Tested by

no test coverage detected