Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How do add poff effects to remove monster area?
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#1
How do add poff effects to remove monster area?

As the title said , i want to add poff effect to my monster remove script

void OnStart()
{
SetEntityCallbackFunc("keynotwork", "PickUpKeyFunc");
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "remove", true, 1);
}

void remove(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", false);
}


void PickUpKeyFunc(string &in entity, string &in type)
{
if(type == "OnPickup")
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 2, "");
StartPlayerLookAt("castle_2", 5, 5, "");
PlaySoundAtEntity("", "react_scare.snt", "mansion_2", 0, false);
GiveSanityDamage(40, true);
AddTimer("StopLookAt", 3, "StopLookAtEvent");
}
}

void StopLookAtEvent(string &in asTimer)
{
StopPlayerLookAt();
}

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
06-17-2012, 12:25 PM
Find
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#2
RE: How do add poff effects to remove monster area?

(06-17-2012, 12:25 PM)SilentHideButFine Wrote: As the title said , i want to add poff effect to my monster remove script
.
Use:
FadeEnemyToSmoke(string& asName, bool abPlaySound);
06-17-2012, 12:38 PM
Website Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#3
RE: How do add poff effects to remove monster area?

(06-17-2012, 12:38 PM)Mackiiboy Wrote:
(06-17-2012, 12:25 PM)SilentHideButFine Wrote: As the title said , i want to add poff effect to my monster remove script
.
Use:
FadeEnemyToSmoke(string& asName, bool abPlaySound);
ty for the fast reply

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
06-17-2012, 12:40 PM
Find




Users browsing this thread: 1 Guest(s)