Eventloadactor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[eventloadactor]] runs when an actor is loaded into the map. Despite the name it is not a game event but an entirely seperate type of block ended with enda. It is most usefull for moving settings out of hitags and lotags and into [[gamevar]]s before they have unwanted 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 |
Revision as of 04:07, 15 September 2005
eventloadactor runs when an actor is loaded into the map. Despite the name it is not a game event but an entirely seperate type of block ended with enda. It is most usefull for moving settings out of hitags and lotags and into gamevars before they have unwanted 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