20 lines
500 B
Plaintext
20 lines
500 B
Plaintext
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
object oTarget;
|
||
|
object oSpawn;
|
||
|
effect eVFX;
|
||
|
|
||
|
// Get the PC who is in this conversation.
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Spawn "mako2".
|
||
|
eVFX = EffectVisualEffect(VFX_IMP_DUST_EXPLOSION);
|
||
|
oTarget = GetWaypointByTag("WP_SPn_mako2");
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "mako2", GetLocation(oTarget));
|
||
|
AssignCommand(oSpawn, ActionStartConversation(oPC));
|
||
|
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
||
|
}
|
||
|
|