Posxv

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is the player's x velocity.

gamevar TEMP 0 0

actor APLAYER MAXPLAYERHEALTH PSTAND 0 0

// double the player's speed

  getplayer[THISACTOR].posxv TEMP
  mulvar TEMP 2
  setplayer[THISACTOR].posxv TEMP
  getplayer[THISACTOR].posyv TEMP
  mulvar TEMP 2
  setplayer[THISACTOR].posyv TEMP

  ifaction 0
    action PSTAND
...