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 to make the wind open the door?
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#4
RE: How to make the wind open the door?

(01-04-2013, 12:07 PM)The chaser Wrote:
(01-04-2013, 05:48 AM)NaxEla Wrote: This script will make the wind blow the door open when the player walks into an area.
For my example, the door will be called "door1" and the script area will be called "area1":

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""area1""OpenDoorByWind"true1);
}
void OpenDoorByWind(string &in asParentstring &in asChildint alState)
{
    
PlaySoundAtEntity("""general_wind_whirl.snt""door1"0false);
    
AddPropForce("door1"001000"local");


The value for the force will probably need to be adjusted.

It would be good that you made a particle system in the door.

You're right, it would be good... but I'm feeling lazy :p

In Ruins [WIP]
01-04-2013, 05:49 PM
Find


Messages In This Thread
RE: How to make the wind open the door? - by NaxEla - 01-04-2013, 05:49 PM



Users browsing this thread: 1 Guest(s)