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", true, 1);
 }

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

 
void dooropensequence(string &in asTimer)
 {
 
SetSwingDoorClosed("exitdoor", false, false);
 
SetSwingDoorDisableAutoClose("exitdoor", true);
 
AddPropForce("exitdoor", 270.0, 0, 0, "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: 1 Guest(s)