Category: Objects
/ Status
Since engine version: 4.6.5.0 CP
(extended in 4.9.6.0 CR)
Constant | Value | Meaning |
---|---|---|
PHYS_Current | 0 | The physical attributes are changed in the current mode (temporary or permanent) of the object. |
PHYS_Permanent | 1 | The physical attributes are changed in permanent mode. This modifies the info section of the associated crew object, which means that the changes will be written to the player file as well. Only player crew objects have a permanent info section. |
PHYS_Temporary | 2 | The object will be set to temporary physical mode, and a temporary info section will be created if none exists already. Use ResetPhysical to reset temporary physicals to permanent mode. |
PHYS_StackTemporary | 3 | Like PHYS_Temporary, but the previous physical-value will be backed up and can be restored by calling ResetPhysical. Since CR. |
protected func Activate(pEater) { [$DescEatPill$] SetPhysical("Magic", 1000000, PHYS_Temporary, pEater); while(DoMagicEnergy(1, pEater)) ; return(RemoveObject()); }
protected func FxJumpBoostStart(object trg, int num, int iTemp) { SetPhysical("Jump", GetPhysical("Jump", PHYS_Current, trg) + 10000, PHYS_StackTemporary, trg); return(FX_OK); } protected func FxJumpBoostStop(object trg, int num, int reason, bool tmp) { ResetPhysical(trg, "Jump"); return(FX_OK); }