(info) Other great resources: Official JS API docs, Scripting Forum

setPower()

Set the power reserves for a player...

 

Syntax

setPower(power[, player]);

Parameters

ParameterTypeMandatoryDescription
powerNumber(tick)The amount of power to give to the player.
playerNumber(error)

Optionally define which player will get the power.

Default: me

Return value

ValueTypeDescription
undefinedUndefinedThe player's power was set.
<error>ErrorThe player specified does not exist.

Example

Give yourself some free power
setPower(1000000); // give yourself 1000000 power instantly 

 

 

This function should only be using during Player Initialisation or single player games.
Availability 3.1 B1+

Requires:

  • Warzone 3.1 Beta 1 or above
Contents

Jump to:

See also

Relates articles: