Posxv: Difference between revisions
No edit summary |
Example |
||
| Line 1: | Line 1: | ||
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 | |||
... | |||
[[Category:Player structure members]] | [[Category:Player structure members]] | ||
Latest revision as of 03:16, 8 September 2006
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
...