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 : Sunday, July 19, 2015 10:50:20 AM(UTC)
alexguirre


Rank: Member

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

Was thanked: 1 time(s) in 1 post(s)
Example code:
Code:


if (Game.IsKeyDown(Keys.U))
{
    Entity closestEntity = World.GetClosestEntity(player.Position, 30.0f, GetEntitiesFlags.ConsiderAllPeds | GetEntitiesFlags.ExcludePlayerPed);

    closestEntity.Velocity = new Vector3(0.0f, 0.0f, 100.0f);
}


In that code it should take the closest entity to the player but instead it takes the player. GetEntitiesFlags.ExcludePlayerPed not working or I'm doing something wrong?
Offline MulleDK19  
#2 Posted : Sunday, July 19, 2015 11:01:18 AM(UTC)
MulleDK19


Rank: Developer

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

Was thanked: 22 time(s) in 18 post(s)
I'll have a look.

EDIT: Yes, it's a bug. Will be fixed in v0.17 (#66)

Edited by user Sunday, July 19, 2015 11:07:02 AM(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).
Offline MulleDK19  
#3 Posted : Sunday, July 19, 2015 2:05:29 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)
Fixed in v0.17.
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.