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

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Onevent

From EDukeWiki

Used outside of all actors, onevent defines a special block of CON code to be executed when a specific event happens in the game code. endevent is used to end the statement. Many events can be canceled by setting the gamevar RETURN to -1 inside the aforementioned block of code.

gamevar MYMEDPACK 100 1

onevent EVENT_TURNAROUND
{
    palfrom 32 0 0 32
    addphealth 5
    subvar MYMEDPACK 5
    setvar RETURN -1
}
endevent

See the EDuke32 event list for a list of all currently valid events in Eduke32.

Retrieved from "http://localhost../../../o/n/e/Onevent.html"

This page has been accessed 550 times. This page was last modified 08:32, 7 September 2006 by Richard Gobeille. Based on work by Jonathan Smith.


[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