Jagsrs28
Member
Posts: 101
Threads: 25
Joined: Jun 2012
Reputation:
0
|
RE: How to make a area to dmg the player when enter (With static objects)
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "NearHurt", true, 1);
}
void NearHurt (string &in asParent, string &in asChild, int alState)
{
GivePlayerDamage(30, BloodSplat, false, false);
PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant1.snt", "Player", 0, false);
}
Now all you have to do is set up a script area around the barbarrier and call it ScriptArea_1 then you should be good to go (I never played the real Amnesia game so I wouldnt know what it would be like but I made it as good as i can)
Need any help just post back here.
Mine gives sounds of pain. Unlike ApeCakes script.
Special Custom Story for 2 special people!
(This post was last modified: 06-26-2012, 05:07 PM by Jagsrs28.)
|
|
06-26-2012, 05:06 PM |
|