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 Can't make door explode?
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#7
RE: Can't make door explode?

(02-04-2012, 03:43 PM)XxRoCkBaNdMaNxX Wrote:
(02-03-2012, 11:42 PM)JenniferOrange Wrote: http://wiki.frictionalgames.com/hpl2/tut...oding_door
This should help. :]
Hey I noticed a problem there! It says to replace

void func_slam(string &in asParent, string &in asChild, int alState)

With

void func_slam(string &in asEntity)


Then the final script is this

void OnStart()


{
SetEntityPlayerInteractCallback("door1", "func_slam", true);
}


void func_slam(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("door1", 0.0f);


PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);


PlaySoundAtEntity("", "react_scare", "Player", 0, false);


PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);


GiveSanityDamage(5.0f, true);
}




:|
You're right! o:
Unfortunately it's not my tutorial so..




Ba-da bing, ba-da boom.
02-04-2012, 05:09 PM
Find


Messages In This Thread
Can't make door explode? - by GrAVit - 02-03-2012, 10:33 PM
RE: Can't make door explode? - by JenniferOrange - 02-03-2012, 11:42 PM
RE: Can't make door explode? - by GrAVit - 02-03-2012, 11:46 PM
RE: Can't make door explode? - by RawkBandMan - 02-04-2012, 03:43 PM
RE: Can't make door explode? - by JenniferOrange - 02-04-2012, 05:09 PM
RE: Can't make door explode? - by JenniferOrange - 02-03-2012, 11:50 PM
RE: Can't make door explode? - by GrAVit - 02-03-2012, 11:56 PM



Users browsing this thread: 1 Guest(s)