WarCraft: Source

 

Clip

Page history last edited by freddukes@... 1 yr ago

Clip

 


 

 

This command sets a new value for the clip. The clip is the amount of bullets that's loaded, don't get this confused with Ammo. This is similar to ClipAdd, only it sets a new value rather than adding it.

 

The correct syntax is:

 

wcs.Command(<userid>).Clip(<amount>, <slot 1/2>)

 

  • Userid - The player who's clip value who'd wish to change
  • Amount - The new value the clip will have
  • Slot - 1 = Primary --- 2 = secondary

 


Example:

 

def item_pickup(ev):

    if ev["item"] == "weapon_awp":

        wcs.Commnad(ev['userid']).Clip(0,1)

        # Sets the clip of an AWP to 0 on pickup

 

 

 

Comments (0)

You don't have permission to comment on this page.