PRC8/trunk/smp/0_wishtest2.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

20 lines
523 B
Plaintext

void main()
{
// Spawn in "genie"
SetListening(OBJECT_SELF, TRUE);
SetListenPattern(OBJECT_SELF, "**", 0);
SetFacingPoint(GetPosition(GetFirstPC()));
ActionSpeakString("You can speak your wish sir");// Never appers
SendMessageToPC(GetFirstPC(), "Wish debug: Spawn");
effect eTime = EffectTimeStop();
// 4 seconds too long
// 1 second too little, by a small margin.
// 1.5 should be fine
DelayCommand(1.5, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eTime, OBJECT_SELF));
}