This page belongs to the devestator registration structure when creating your own devestators in the lua/wos/advswl/devestators
folder of the addon.
The syntax is similar to that of Force Powers. All properties are always registered within the devestator and accessible at any time, but only select properties are networked.
name [string]
The name of the devestator.
icon [string]
The characters that will be used for quick reference in the devestator quick swap bar.
image [string]
The path of the material or png that will be used for the devestator in the devestator selection menu.
description [string]
The description of the devestator that will appear in the devestator selection menu.
help [string]
The help text on how to use the devestator that will appear in the devestator selection menu when you right click on it.
action [function]
The function that activates when you press your alternate fire button. The only argument is the weapon (self) and it is only called on the SERVER
A simple devestator that heals the current owner to full health when used
action = function( self ) local owner = self.Owner if not IsValid( owner ) then return end self.Owner:SetHealth( self.Owner:GetMaxHealth() )end,