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
Secret shelf and no music
Mr. Bombastic Offline
Junior Member

Posts: 30
Threads: 6
Joined: Jul 2011
Reputation: 0
#2
RE: Secret shelf and no music

Strange to say I also tried the gust door script from the first level on my map and it didn't work, i don't know why. But it's easy to replace!

This is the script i used for the door opening slowly:
Spoiler below!
void DoorOpenFunction(string &in asParent, string &in asChild, int alState)
{
AddTimer("Start1", 0.1f, "DoorOpenTimer");
AddTimer("Start2", 0.6f, "DoorOpenTimer");
AddTimer("Start3", 1.1f, "DoorOpenTimer");
AddTimer("Start4", 1.6f, "DoorOpenTimer");
AddTimer("Start5", 2.1f, "DoorOpenTimer");
AddTimer("Start6", 2.6f, "DoorOpenTimer");
}


void DoorOpenTimer(string &in asTimer)
{
if(asTimer == "Start1"){
AddPropImpulse("mansion_6", -0.2f, 0, -0.2f, "World");
}

if(asTimer == "Start2"){
AddPropImpulse("mansion_6", -0.3f, 0, -0.3f, "World");
}

if(asTimer == "Start3"){
AddPropImpulse("mansion_6", -0.3f, 0, -0.3f, "World");
}

if(asTimer == "Start4"){
AddPropImpulse("mansion_6", -0.2f, 0, -0.2f, "World");
}

if(asTimer == "Start5"){
AddPropImpulse("mansion_6", -0.1f, 0, -0.1f, "World");
}

if(asTimer == "Start5"){
AddPropImpulse("mansion_6", 0.1f, 0, 0.1f, "World");
}
}
I hope you know how to use the "AddPropImpulse" script.
X, Y and Z have to fit with the door in the level editor.

I hope this helped.
08-25-2011, 08:35 AM
Find


Messages In This Thread
Secret shelf and no music - by GoDl1Kelol - 08-24-2011, 02:35 PM
RE: Secret shelf and no music - by Mr. Bombastic - 08-25-2011, 08:35 AM



Users browsing this thread: 1 Guest(s)