Initial commit
Initial commit [v9.7]
This commit is contained in:
31
_module/nss/ent_stn_hasbldr.nss
Normal file
31
_module/nss/ent_stn_hasbldr.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
oTarget = oPC;
|
||||
|
||||
//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
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL), GetLocation(oTarget));
|
||||
|
||||
oTarget = GetObjectByTag("Hasan");
|
||||
|
||||
//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
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL), GetLocation(oTarget));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user