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 Determine angle on object
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Determine angle on object

(07-03-2015, 02:40 PM)Rahmerh Wrote: You could make it a custom entity. Save it as a lever, and when you move it up, you can use
int GetLeverState(string& asName);
perhaps. I'm not sure if it's worth all the hassle, scriptareas are easier imo.

The problem is that GetLeverState(); only allows 3 possible outcomes.

1 - Up
0 - Middle
-1 - Down

You can use scriptareas though, just keep in mind it may be difficult to get it to respond to one particular scriptarea if it is colliding with 2 of them at the same time.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
07-03-2015, 03:19 PM
Find


Messages In This Thread
Determine angle on object - by Neelke - 07-03-2015, 02:00 PM
RE: Determine angle on object - by Neelke - 07-03-2015, 02:15 PM
RE: Determine angle on object - by Rahmerh - 07-03-2015, 02:40 PM
RE: Determine angle on object - by Romulator - 07-03-2015, 03:19 PM
RE: Determine angle on object - by Rahmerh - 07-03-2015, 03:23 PM
RE: Determine angle on object - by Neelke - 07-03-2015, 04:31 PM



Users browsing this thread: 1 Guest(s)