Jump to content

Checking if vehicledoor is opened


ST072

Recommended Posts

Hi I'm trying to check whether a vehicledoor is opened. To do this I use the native IS_VEHICLE_DOOR_FULLY_OPEN but it doesnt seem to work. It only works when it != equal what I ask. I already tried it with null instead of true and without either of them. However I just cant seem to get it working.

 

                    if (Rage.Native.NativeFunction.Natives.IS_VEHICLE_DOOR_FULLY_OPEN<bool>(Game.LocalPlayer.Character.GetNearbyVehicles(1)[0], 3) == true)
                    {
                        do something
                    }
                    if (Rage.Native.NativeFunction.Natives.IS_VEHICLE_DOOR_FULLY_OPEN<bool>(Game.LocalPlayer.Character.GetNearbyVehicles(1)[0], 3) != true)
                    {
                        do something
                    }

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...