WarCraft: Source

 

BlockAbil

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

Block Ability


This command blocks a user from using his ability from a certain amount of time.

 

The correct syntax is:

 

wcs.Command(<userid>).BlockAbil(<time>)

 

  • Userid - The player's ability that you'd like to block
  • Time - The amount of time to block it... 0 = till the end of the round

 


Example:

 

def player_spawn(ev):

    ident = '#t'

    if ev['es_userteam'] == '2': ident = '#ct'

    wcs.Command(ev['userid']).Near(1000,BlockAbility,ident)

 

def BlockAbility(userid, attacker):

    wcs.Command(userid).BlockAbil(30)

 

# Block enemie's abilities in 1000 game units when the player spawns

 

 

 

Comments (0)

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