Difference between revisions of "Actor Script"
→Notes: Added note about actors in leveled actor lists not allowing scripts
imported>Fowl (→Events: OnDying event) |
imported>Cipscis (→Notes: Added note about actors in leveled actor lists not allowing scripts) |
||
Line 379: | Line 379: | ||
*Event [[OnSit - Actor|OnSit]](ObjectReference akFurniture) | *Event [[OnSit - Actor|OnSit]](ObjectReference akFurniture) | ||
**Event received when this actor sits on the specified furniture. | **Event received when this actor sits on the specified furniture. | ||
== Notes == | |||
* You may not attach a script to an actor if that actor would be used by a leveled actor list. If an actor is used in a leveled actor list, its "Scripts" section will be disabled. | |||
** There is a workaround in this in cases where you need actors to be both leveled and scripted - you can create a constant/self magic effect and apply that at the race level. For example, the '''FXDragonBloodDamageScript''' handles applying some special blood FX to dragons through combat. Since dragons are used to populate leveled lists, however, we attach this script to '''AbFXDragonBloodDamage''', which is an effect on the '''AbDragonBloodFX''' spell. That's then assigned as a special racial ability of the '''DragonRace'''. You can look at a similar example in how the WispMothers work, too. |