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
Door is not automatically opening!! D=
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#7
RE: Door is not automatically opening!! D=

(10-01-2011, 09:35 PM)Khyrpa Wrote:
(10-01-2011, 09:31 PM)Gamemakingdude Wrote: I think he meant 270.0f
Wait i see the problem.

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""fadeoutarea""autoopendoor"true1);
}

void autoopendoor(string &in asParentstring &in asChildint alState)
{
//You forgot to put an f after the time.
AddTimer(""2.0f"dooropensequence");
}

void dooropensequence(string &in asTimer)
{
SetSwingDoorClosed("exitdoor"falsefalse);
SetSwingDoorDisableAutoClose("exitdoor"true);
AddPropForce("exitdoor"270.000"world");

And dont forget the f after 270 ^^
AddPropForce("exitdoor", 270.0f, 0, 0, "world");

When using decimals you need to put f behind...

No you don't. I use propforce and i dont have to use .0f, you can just use 270 and it will still work.

Rep if like me or im helpful or you love my stories!
Stephanos house
10-01-2011, 09:36 PM
Find


Messages In This Thread
RE: Door is not automatically opening!! D= - by Gamemakingdude - 10-01-2011, 09:36 PM



Users browsing this thread: 1 Guest(s)