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=
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#6
RE: Door is not automatically opening!! D=

(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...

10-01-2011, 09:35 PM
Find


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



Users browsing this thread: 2 Guest(s)