GenRefire: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(new article) |
m (a bit more) |
||
Line 1: | Line 1: | ||
GenRefire is a refire check codepointer -- similar to [[CPosRefire]] and [[SpidRefire]], it is used to let a monster go back to the ''seestate'' if the target is out of sight. Unlike those, it is customizable. | GenRefire is a refire check codepointer -- similar to [[CPosRefire]] and [[SpidRefire]], it is used to let a monster go back to the ''seestate'' if the target is out of sight, dead or inexistent. Unlike those, it is customizable. | ||
===Usage=== | ===Usage=== |
Revision as of 05:31, 27 December 2011
GenRefire is a refire check codepointer -- similar to CPosRefire and SpidRefire, it is used to let a monster go back to the seestate if the target is out of sight, dead or inexistent. Unlike those, it is customizable.
Usage
GenRefire(statenum, chance)
Parameters
- statenum: mnemonic of frame to jump to when out of sight.
- chance: chance out of 256 that the monster will continue firing even if out of sight.
Notes
This codepointer includes a call to FaceTarget. Also, if the actor is FRIEND and has similar fellows in the line of fire, it will switch to statenum without checking for chance.