25 lines
736 B
Plaintext
25 lines
736 B
Plaintext
|
|
void main()
|
|
|
|
{
|
|
object oTarget;
|
|
object oSpawn;
|
|
effect eVFX;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Spawn "makoshark2".
|
|
eVFX = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
|
oTarget = GetWaypointByTag("WP_SPn_makoshark2");
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "makoshark2", GetLocation(oTarget));
|
|
DelayCommand(0.5, AssignCommand(oSpawn, ActionStartConversation(oPC)));
|
|
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
oTarget = GetObjectByTag("Mako2");
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
|
|
DestroyObject(oTarget, 3.0);
|
|
}
|
|
|