15 lines
562 B
Plaintext
15 lines
562 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object user=GetLastUsedBy();
|
||
|
if(!GetIsObjectValid(user)||!GetIsPC(user))
|
||
|
return; // We only do this for PC's
|
||
|
// Set up our fire-and-forget visual effect.
|
||
|
// Any of the VFX_FNF constants should work here, depending on what you want.
|
||
|
effect eff=EffectVisualEffect(VFX_FNF_SUNBEAM);
|
||
|
object target=GetObjectByTag("WP_spiral");
|
||
|
AssignCommand(user,ClearAllActions());
|
||
|
// Fire our visual effect
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,eff,OBJECT_SELF);
|
||
|
AssignCommand(user,ActionJumpToObject(target));
|
||
|
}
|