One eighty count: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Added an example |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
If [[one_eighty_count]] is less than zero, then 128 is added to [[one_eighty_count]] and [[ang]]. (this lets the player turn a set angle over time...) This is set on key TURNAROUND to -1024. To completely emulate what is being done during [[EVENT_TURNAROUND]], just set one_eighty_count to -1024. | If [[one_eighty_count]] is less than zero, then 128 is added to [[one_eighty_count]] and [[ang]]. (this lets the player turn a set angle over time...) This is set on key TURNAROUND to -1024. To completely emulate what is being done during [[EVENT_TURNAROUND]], just set one_eighty_count to -1024. | ||
actor APLAYER MAXPLAYERHEALTH PSTAND 0 0 | |||
ifhitspace | |||
setplayer[THISACTOR].'''one_eighty_count''' -1024 | |||
ifaction 0 | |||
action PSTAND | |||
... | |||
[[Category:Player structure members]] |
Latest revision as of 08:26, 7 September 2006
If one_eighty_count is less than zero, then 128 is added to one_eighty_count and ang. (this lets the player turn a set angle over time...) This is set on key TURNAROUND to -1024. To completely emulate what is being done during EVENT_TURNAROUND, just set one_eighty_count to -1024.
actor APLAYER MAXPLAYERHEALTH PSTAND 0 0 ifhitspace setplayer[THISACTOR].one_eighty_count -1024 ifaction 0 action PSTAND ...