Difference between revisions of "SetAlpha - Actor"

664 bytes added ,  00:00, 12 July 2022
→‎Notes: Added a note about ForceGreets packages
imported>JustinOther
m (→‎Notes: Formatting)
(→‎Notes: Added a note about ForceGreets packages)
 
Line 35: Line 35:


*This function cannot be called on a dead or disabled actor. You will get an error that the actor has no AI process.
*This function cannot be called on a dead or disabled actor. You will get an error that the actor has no AI process.
*Actors with an alpha value less than 1 will not be able to ForceGreet the player, ''unless'' they are flagged as a ghost (either on the base actor or via the SetGhost command). Their package will run and they will approach the player when in range, but will not initiate dialogue.
**Note that setting an NPC as a ghost will make them immune to all damage, and all weapons pass through them without playing hit effects or triggering hit events.
**You can temporarily set an NPC as a ghost for the sake of a ForceGreet package through a package fragment script. Call akActor.SetGhost(true) when the package begins and akActor.SetGhost(false) when the package ends.


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]
Anonymous user