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
How do you do that pls?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: How do you do that pls?

Go ahead, pick one.

Spoiler below!

You don't need to do anything on this.
PHP Code: (Select All)
int tits GetSwingDoorState("DoorName");
if(
tits == 0)
{
GiveSanityDamage(15true);



Spoiler below!

Put a script area somewhere in the door's swing path.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("DoorName""ScriptAreaName""SanityDec"true1);
}

void SanityDec(string &in asParentstring &in asChildint alState)
{
GiveSanityDamage(15true);



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 02-02-2014, 03:06 PM by PutraenusAlivius.)
02-02-2014, 03:06 PM
Find


Messages In This Thread
How do you do that pls? - by Radical Batz - 02-02-2014, 02:52 PM
RE: How do you do that pls? - by PutraenusAlivius - 02-02-2014, 03:06 PM
RE: How do you do that pls? - by Radical Batz - 02-02-2014, 03:08 PM
RE: How do you do that pls? - by Radical Batz - 02-02-2014, 05:39 PM
RE: How do you do that pls? - by Romulator - 02-02-2014, 03:48 PM



Users browsing this thread: 1 Guest(s)