WarCraft: Source

 

SetGravity

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

Set Gravity


This command sets a new gravity value for a player. It is similar to ChangeGravity, except instead of adding a value, it sets a completely new value.

 

The correct syntax is:

 

wcs.Command(<userid>).SetGravity(<amount>)

 

 

  • Userid - The players gravity you are changing
  • Amount - The new value of the gravity. 0.5 = half --- 1.0 = normal ---  2.0 = double. The lower the gravity the higher the player can jump

 


 

Example:

 

def player_spawn(ev):

    wcs.Command(ev['userid']).SetGravity(0.5)

    # Set gravity to half

 

Comments (0)

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