Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting n00b in need of help.
Cellrage Offline
Junior Member

Posts: 4
Threads: 0
Joined: Oct 2010
Reputation: 0
#21
RE: Scripting n00b in need of help.

I'm going to assume that you have it set so that when you pick up the lantern, it runs "lanterndooractivate".

First thing that you should probably get in the habit of is to add debug messages to whatever functions you're having trouble with so you can visually see if they are being called or not.

On to your script, I can see a few potential problems. One is that the disable auto close should be probably called at the same time as the prop force, as I'm pretty sure the disable auto close isn't permanent.

The second is your actual prop force. The three number inputs stand for x, y, and z, in that order I think. You don't need an impulse in every axis to open the door, only in either the z or the x axis. Check in your level editor to see which direction you should push it, or just experiment with slightly larger values.

Also, I tend to find AddPropImpulse works better for me.
11-14-2010, 03:08 AM
Find


Messages In This Thread
Scripting n00b in need of help. - by Akumasama - 11-13-2010, 12:59 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-13-2010, 01:37 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:02 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 02:52 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:15 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:41 PM
RE: Scripting n00b in need of help. - by anzki - 11-13-2010, 05:42 PM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:08 AM
RE: Scripting n00b in need of help. - by Chilton - 11-14-2010, 03:33 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:37 AM



Users browsing this thread: 1 Guest(s)