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

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Onevent

From EDukeWiki

onevent <event name> { code } endevent

Used outside of all actors. When the event called <event name> occurs, any following code occurs. endevent is used to end the statement. Set the gamevar RETURN to -1 inside an onevent statement to cancel to effects of the event.


Example 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://sc8-pr-shell1.sourceforge.net../../../o/n/e/Onevent.html"

This page has been accessed 346 times. This page was last modified 02:24, 25 September 2005 by Richard Gobeille. Based on work by Jonathan Smith. Content is available under SourceForge.


[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