WarCraft: Source

 

PushTo

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

Push To


PushTo is a command that pushes a player to a certain co-ord, at a certain force. If there are walls blocking the path, they'll be stopped before they reach their position.

 

The correct syntax is:

 

wcs.Command(<userid>).PushTo(<x>, <y>, <z>, <force>)

 

  • X, Y and Z - The co-ordinates to push the player to
  • Force - The force at which the player will be pushed

 


Example:

 

def player_say(ev):

    if ev["text"] == "pushme":

        player = wcs.Command(ev["userid"])

        player.PushTo(0,0,0,50)

 

 

Comments (0)

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