Initial commit
Initial commit [v9.7]
This commit is contained in:
33
_module/nss/perc_drnk_invis.nss
Normal file
33
_module/nss/perc_drnk_invis.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 2.3
|
||||
|
||||
For download info, please visit:
|
||||
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||||
|
||||
//Goes OnPerceived of a creature
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastPerceived();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!GetLastPerceptionSeen()) return;
|
||||
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK);
|
||||
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectInvisibility(INVISIBILITY_TYPE_NORMAL);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 5.0f);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user