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
why wont this work :<
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#8
RE: why wont this work :<

(01-10-2012, 10:33 AM)Quotentote Wrote:
PHP Code: (Select All)
    SetSwingDoorLocked("door1"falsetrue); 

?

PHP Code: (Select All)
void func_slam(string &in asParentstring &in asChildint alState)
{
SetSwingDoorLocked("door1"falsetrue);
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);
PlaySoundAtEntity("""react_scare""Player"0false);


tried this but it didnt work T_T
That only unlocks the door, doesn't make it swing open.

AddPropImpulse("door1", float afX, float afY, float afZ, "world");
The floats are X, Y and Z. Look into the map and check what axis the door moves on to open. Then add like a 2 or 4 on that float, leave all the others to 0.

Or you could just

SetEntityActive("door1", false);
SetEntityActive("door2", true);

Click on the door1 and hit Ctrl + D and make door2 unactive, also make the OpenAmount to 1.


(This post was last modified: 01-10-2012, 10:55 AM by flamez3.)
01-10-2012, 10:55 AM
Find


Messages In This Thread
why wont this work :< - by Quotentote - 01-10-2012, 10:05 AM
RE: why wont this work :< - by flamez3 - 01-10-2012, 10:16 AM
RE: why wont this work :< - by Quotentote - 01-10-2012, 10:22 AM
RE: why wont this work :< - by flamez3 - 01-10-2012, 10:27 AM
RE: why wont this work :< - by Quotentote - 01-10-2012, 10:30 AM
RE: why wont this work :< - by flamez3 - 01-10-2012, 10:32 AM
RE: why wont this work :< - by Quotentote - 01-10-2012, 10:33 AM
RE: why wont this work :< - by flamez3 - 01-10-2012, 10:55 AM
RE: why wont this work :< - by Quotentote - 01-10-2012, 11:07 AM
RE: why wont this work :< - by flamez3 - 01-10-2012, 11:27 AM



Users browsing this thread: 2 Guest(s)