Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what the script Doorslam but reverse
Author Message
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #11
RE: what the script Doorslam but reverse

AddPropImpulse("doorlsam_1", 21.5, 0, -2.75, "");
Cuz X is 21.5 and y 0 and z is -2.75

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-27-2011 04:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,285
Joined: Apr 2011
Reputation: 57
Post: #12
RE: what the script Doorslam but reverse

(12-27-2011 04:32 PM)jessehmusic Wrote:  AddPropImpulse("doorlsam_1", 21.5, 0, -2.75, "");
Cuz X is 21.5 and y 0 and z is -2.75
No, don't put the co-ordinates of the door in. Put the desired force in the the floats.

12-27-2011 04:35 PM
Find all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #13
RE: what the script Doorslam but reverse

the cords of the area then or do i have wrong this is so hard Confused

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-27-2011 04:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Linus Ă…gren Offline
Senior Member

Posts: 308
Joined: Jan 2011
Reputation: 5
Post: #14
RE: what the script Doorslam but reverse

You're not supposed to use the values from the position of the object. Test with different values to give the door the force you want it to. I tend to use values like 10.0f.

Creator of The Dark Treasure.
12-27-2011 04:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)