objWeaponSettings

objects / Level Objects / objWeaponSettings
prtAlwaysActive > prtLevelCallbacks > objWeaponSettings

Description

Allows you to tweak weapons on a per-level basis.

Creation code options:

setWeaponLocked(objWhatever,true/false);

Examples:

setWeaponLocked(objBreakDash,true);

setWeaponLocked(objMagnetBeam,true);

Variables

NameValueDescription
onlyUnlockOnLevelEndfalse

if true weapons wont be unlocked until the level ends

levelStartScriptscrNoEffect

script that runs when the level begins(won't run after respawning)

levelEndScriptscrNoEffect

script that runs when the level ends

variable names in bold are safe to set in creation code.

Inherited from prtLevelCallbacks

NameValueDescription

Inherited from prtAlwaysActive

NameValueDescription
frozen0