15 lines
520 B
Plaintext
15 lines
520 B
Plaintext
//sphinx come alive
|
|
void main()
|
|
{
|
|
object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
|
if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 10.0)
|
|
{
|
|
effect eMind = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
|
SetPlotFlag(OBJECT_SELF, FALSE);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eMind, OBJECT_SELF);
|
|
object oGargoyle = CreateObject(OBJECT_TYPE_CREATURE, "havensphinx", GetLocation(OBJECT_SELF));
|
|
DestroyObject(OBJECT_SELF, 0.0);
|
|
}
|
|
}
|