generated from Jaysyn/ModuleTemplate
Merged redundant hak files
Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
This commit is contained in:
24
_mod/_module/nss/npcact_use_oven.nss
Normal file
24
_mod/_module/nss/npcact_use_oven.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
/////////////////////////////////////////////
|
||||
// Make oven Fire appear
|
||||
/////////////////////////////////////////////
|
||||
// By Deva Bryson Winblood
|
||||
// Also used with NPC ACTIVITIES 6.0 but, did not require modification
|
||||
/////////////////////////////////////////////
|
||||
// Requires a waypoint labeled MAKE_OVENFIRE
|
||||
// where you want the flames to appear for a
|
||||
// moment.
|
||||
/////////////////////////////////////////////
|
||||
// SCRIPT: npcact_use_oven
|
||||
/////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oWP=GetNearestObjectByTag("MAKE_OVENFIRE",OBJECT_SELF,1);
|
||||
effect eSmokePuff=EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
|
||||
if (oWP!=OBJECT_INVALID)
|
||||
{ // it is present
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eSmokePuff,GetLocation(oWP),3.0);
|
||||
object oFire=CreateObject(OBJECT_TYPE_PLACEABLE,"plc_flamesmall",GetLocation(oWP));
|
||||
DelayCommand(16.0,DestroyObject(oFire));
|
||||
} // it is present
|
||||
}
|
||||
Reference in New Issue
Block a user