CastSpecialAttack(string sAtkScript, location lLoc, float fDelay, int nShape, float fRange, float fWidth = 0.0)
- Allows to cast special attacks from script
sAtkScript
is a custom script you can write (see specatk_godhammer)- See specatk_inc for more info
- Special attack shapes:
- None:
sAtkScript
won't be called for nearby creatures - Circle: Affects anybody in a circle of custom radius
- Line: Affects anybody in a rectangle of custom size
- Cone: Affects anybody in a cone shape of custom radius & angle
- Note: cone angle can be > 180 deg
- None:
- Automatically calls the script with the damage event on any creature in the shape.
Just copy all files starting with specatk_
into your module repertory (or mod file using an ERF tool)
Feel free to move sef
, bbx
and tga
files into a custom hak instead of the module itself.
Don't forget to build scripts 😉
- Example attack scripts:
- Circle shape: specatk_godhammer
- Line shape: specatk_line_lightning
- Cone shape and multiple impact: specatk_cone_fire
- Library: