Alraun
22.04.2006, 08:19
Hallo Gemeinde,
ich hab folgendes Problem. Ich hab ein Gegenstand, mit dem möchte ich einige Spezial-Effekte InGame fabrizieren. Nur macht der Gegenstand, den ich gescriptet habe es nur auf den Anwender, ich will es aber auf eine spezielle vom Anwender definierte Location haben.
Kann mir bitte jemand sagen, wo ich den Fehler hab?
//Modul-Eigenschaften
//OnAktivateItem
void main()
{
effect eVisA = EffectVisualEffect(VFX_FNF_TIME_STOP);
effect eVisB = EffectVisualEffect(VFX_FNF_GREATER_RUIN);
effect eVisC = EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION);
object oWirdBenutzt=GetItemActivated();
if (GetTag(oWirdBenutzt) == "SPELLFAKER")
{
location lZielort = GetItemActivatedTargetLocation();
DelayCommand(0.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisA, lZielort, 4.0));
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisB, lZielort, 3.0));
DelayCommand(6.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisC, lZielort, 3.0));
}
}
ich hab folgendes Problem. Ich hab ein Gegenstand, mit dem möchte ich einige Spezial-Effekte InGame fabrizieren. Nur macht der Gegenstand, den ich gescriptet habe es nur auf den Anwender, ich will es aber auf eine spezielle vom Anwender definierte Location haben.
Kann mir bitte jemand sagen, wo ich den Fehler hab?
//Modul-Eigenschaften
//OnAktivateItem
void main()
{
effect eVisA = EffectVisualEffect(VFX_FNF_TIME_STOP);
effect eVisB = EffectVisualEffect(VFX_FNF_GREATER_RUIN);
effect eVisC = EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION);
object oWirdBenutzt=GetItemActivated();
if (GetTag(oWirdBenutzt) == "SPELLFAKER")
{
location lZielort = GetItemActivatedTargetLocation();
DelayCommand(0.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisA, lZielort, 4.0));
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisB, lZielort, 3.0));
DelayCommand(6.0, ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,
eVisC, lZielort, 3.0));
}
}