logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline alexguirre  
#1 Posted : Saturday, August 8, 2015 10:03:37 AM(UTC)
alexguirre


Rank: Member

Groups: Registered
Joined: 6/17/2015(UTC)
Posts: 87
Spain

Was thanked: 1 time(s) in 1 post(s)
Looks like the GetEntitiesFlags is very buggy. Now the bug is that the flag ExcludePlayerVehicle isn't working. Here is my code in case it's my error:
Code:

if (player.IsInAnyVehicle(false))
{
    Vehicle closestVeh = (Vehicle)World.GetClosestEntity(player.Position, 25.0f, GetEntitiesFlags.ConsiderGroundVehicles | GetEntitiesFlags.ExcludePlayerVehicle);

    if (closestVeh.Exists())
    {
        closestVeh.Velocity = closestVeh.UpVector * 1.0f;
    }
}


I was just testing things, nothing important so I don't need a solution, for now.


EDIT: I tried the ExcludePlayerVehicleIfDriver flag and also it isn't working. I didn't tested the ExcludePlayerVehicleIfPassenger flag but I think it will have the same bug.

Edited by moderator Wednesday, November 4, 2015 9:18:48 AM(UTC)  | Reason: Not specified

Offline MulleDK19  
#2 Posted : Tuesday, August 11, 2015 4:39:04 PM(UTC)
MulleDK19


Rank: Developer

Groups: Administrators
Joined: 5/20/2015(UTC)
Posts: 322
Man
Denmark

Was thanked: 22 time(s) in 18 post(s)
This will be fixed in v0.23.

Quote:
Fixed a bug in World::GetEntities() causing GetEntitiesFlags::ExcludePlayerVehicleIfDriver to not work, and by extension GetEntitiesFlags::ExcludePlayerVehicle.

Edited by user Tuesday, August 11, 2015 4:41:49 PM(UTC)  | Reason: Not specified

We're now on Twitter!
Don't PM me with RAGE Plugin Hook issues (use the Technical Issues forum), and don't add me as a friend unless I know you.

If you need help developing using RAGE Plugin Hook, or just want to chat, join our IRC channel on freenode.
Links are on the front page of the website http://ragepluginhook.net.

Please note, that people may be idling, and response could take a while.
I suggest you stay for at least half an hour after asking your question (Or just stay forever).
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.