generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/doeffect.nss
Normal file
16
_module/nss/doeffect.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void DoEffect(float oDelay, int oEffect, string oWaypoint)
|
||||
{
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag(oWaypoint);
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
effect eEffect;
|
||||
eEffect = EffectVisualEffect(oEffect);
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT)
|
||||
DelayCommand(oDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT,
|
||||
eEffect, oTarget));
|
||||
else
|
||||
DelayCommand(oDelay, ApplyEffectAtLocation(DURATION_TYPE_INSTANT,
|
||||
eEffect, GetLocation(oTarget)));
|
||||
}
|
||||
void main () {}
|
||||
Reference in New Issue
Block a user