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 Wheel Troubles!
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#3
RE: Wheel Troubles!

Stick an AddDebugMessage() in the callback before the if statement - so you can check if it is being called and what the state of the lever is:
void FunctionName(string &in asEntity, int ValveState)
{    
    AddDebugMessage(asEntity + " - state: " + ValveState,false);
    if (ValveState == 1)
    {
        SetPropObjectStuckState("EntityName", 1);
        PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.0f, false);
    }
}
This would let you determine if the problem is in setting up the callback or if the entity is some strange valve/wheel that turns from max->min instead of min->max.
(This post was last modified: 10-14-2013, 02:41 AM by Apjjm.)
10-14-2013, 02:40 AM
Find


Messages In This Thread
Wheel Troubles! - by BonesTheRabbit - 10-13-2013, 07:51 PM
RE: Wheel Troubles! - by DnALANGE - 10-14-2013, 01:53 AM
RE: Wheel Troubles! - by Apjjm - 10-14-2013, 02:40 AM
RE: Wheel Troubles! - by BonesTheRabbit - 10-15-2013, 12:06 AM



Users browsing this thread: 1 Guest(s)