One eighty count: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Added an example
 
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]]
[[Category:Player structure members]]

Latest revision as of 09: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
...