Making scripts with Lilac's. I can't figure out how to make peope disappear easy so I made this destroy object script. It's used in a conversation but aborts it for some reason.. Tried both with and without animations.
---
void main()
{
object oPC = GetPCSpeaker();
object oTarget;
oTarget = GetObjectByTag("Kathandra");
//Visual effects can't be applied to waypoints, so if it is a WP
//the VFX will be applied to the WP's location instead
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_TORNADO), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_TORNADO), GetLocation(oTarget));
DestroyObject(oTarget, 3.0);
}
---
Also looking for a script that can be placed in a conversation (and in the npc's onspawn?) to initiate a npc to start a wp route when triggered.
Any scripters around?
Have searched for it.. but begining to suspect my internet is stuck in a time loop from around 2005-6 Oo
edit: and it's not destroying the npc the conversation is attached to, if that would cause problem. it's a multi conv
Modifié par ugge85, 22 décembre 2010 - 05:19 .