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
Script Help Make an script work when Pick up key?
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#9
RE: Make an script work when Pick up key?

(06-14-2012, 04:17 PM)SilentHideButFine Wrote: AddPropImpulse("mansion_2", 50, 0, -50, "world"); dosnt work :S want screenshot of the door ?
.
Experiment and try different impulse-values (afX & afZ) till' it works. I think the result depends on how you have rotated your door in the level editor, in some cases you will just need to use X-values, some times Z-values, and some times both. You might need to use SetSwingDoorDisableAutoClose("mansion_2", true); as well to deactivate the auto-close-thing when a door is nearly closed.
-------
You could use propforces as well as propimpulses, but you will need higher values when you use forces.
(This post was last modified: 06-14-2012, 06:23 PM by Mackiiboy.)
06-14-2012, 06:19 PM
Website Find


Messages In This Thread
RE: Make an script work when Pick up key? - by Mackiiboy - 06-14-2012, 06:19 PM



Users browsing this thread: 2 Guest(s)