Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Horiz

From EDukeWiki

The horiz member of the player structure controls the angle at which the player is looking up or down. A value of 100 equates to looking straight ahead; 299 is looking all the way up and -99 is looking all the way down.

gamevar TEMP 0 0

actor APLAYER MAXPLAYERHEALTH PSTAND 0 0

  ifhitspace // slowly angle the player's view downwards when use is held
  {
    getplayer[THISACTOR].horiz TEMP
    ifvarg TEMP -99
      addvar TEMP -1
    setplayer[THISACTOR].horiz TEMP
  }

  ifaction 0
    action PSTAND
...

Retrieved from "http://localhost../../../h/o/r/Horiz.html"

This page has been accessed 172 times. This page was last modified 08:37, 7 September 2006 by Richard Gobeille. Based on work by Matthew Saettler.


[Main Page]
Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports