The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 (Solved) GetPropIsInteractedWith not working?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
(Solved) GetPropIsInteractedWith not working?

No matter what I do with this function it cannot properly work at all. It literally doesn't do what I tell it to do.

float Time = (1.05f - GetTimerTimeLeft("ImpactTime")); // Get's the time taken to impact
float Speed = (Distance / Time); // Gets the speed
    
    if(Speed >= 0.25f && GetPropIsInteractedWith(asParent)) // Minimum necessary speed (don't want this to happen if the rock is hold)
    {
        PlayMusic("17_paper_herbert01.ogg", false, 0.7f, 0, 10, false);
        CompleteQuest("MainVaultDoorsClosed", "MainVaultDoorsClosed");
        SetEntityActive("shovel_joint_1", false); //Prepare new shovel
        SetEntityActive("shovel_joint_2", true);
        ShovelImpulse();
        
        SetMoveObjectStateExt("slide_doo_thick_1", -0.5f, 1.0f, 1.0f, 0.0f, true);
        SetMoveObjectStateExt("slide_doo_thick_2", 0.5f, 1.0f, 1.0f, 0.0f, true);
        
        SetEntityActive("AreaRockOnShovel", false);
        SetEntityActive("AreaRockOnShovel_1", false);
        SetEntityActive("AreaRockTooFarIn", false);
        SetEntityActive("AreaLeftSide", false);
        SetEntityActive("AreaRightSide", false);
        
        SetEntityActive("AreaInteractDoors", false);
    }
    else
    {
        SetMessage("Ch04Level21", "ThrownHarder", 0);
    }

Is this a bug or am I just not using it correctly?

Derp.
(This post was last modified: 08-22-2015, 12:11 AM by Neelke.)
08-21-2015, 04:02 PM
Find


Messages In This Thread
(Solved) GetPropIsInteractedWith not working? - by Neelke - 08-21-2015, 04:02 PM



Users browsing this thread: 2 Guest(s)