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
[HELP] Scripting Cranks
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#1
[HELP] Scripting Cranks

What are the scripts for cranks? Like, I want the player to turn it, and then stuff happens?
Help, please!
(This post was last modified: 12-11-2011, 08:44 PM by Victor.)
12-11-2011, 07:37 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: [HELP] Scripting Cranks

SetEntityConnectionStateChangeCallback(string& wheelName, string& callback);

The parameters for the callback function are (string &in entity, int state). You'll have to fiddle with it to see which direction you turn the wheel/crank corresponds to which state. I believe -1 is min, 0 is middle and 1 is max.

12-12-2011, 01:05 AM
Find




Users browsing this thread: 1 Guest(s)