Victor
Member
Posts: 83
Threads: 19
Joined: Oct 2011
Reputation:
2
|
[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 |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
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 |
|