| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Eventloadactor

From EDukeWiki

Categories: EDuke commands | Sprite manipulation

The eventloadactor blocks run when an actor is loaded into the map — despite the name, it is not a game event but rather an entirely separate type of block ended with enda. It is most often used for moving settings out of a sprite's hitag or lotag and into a gamevar before they have undesirable hardcoded effects.

    gamevar ZERO 0 0
    gamevar HITAGSAVED 0 2
    gamevar LOTAGSAVED 0 2

    eventloadactor MYSPRITE
    {
        getactor[THISACTOR].hitag HITAGSAVED
        getactor[THISACTOR].lotag LOTAGSAVED
        setactor[THISACTOR].hitag ZERO
        setactor[THISACTOR].lotag ZERO
    }
    enda

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../e/v/e/Eventloadactor.html"

This page has been accessed 224 times. This page was last modified 07:01, 25 September 2005 by Richard Gobeille. Based on work by Peter Green. Content is available under SourceForge.

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