Jump to content

Event on every pickup hit?


laurens

Recommended Posts

New question:

In a gamemode, like race, certain maps get played. I want to get a message in a difference resource (ie. "monitor") whenever a pickup gets hit. Is this possible?

I already tried this but it wouldn't respond when I hit a pickup:

function pickupHit ( player )
  outputChatBox ( "You have picked up a pickup.", player ) --Display this message in the chat box
end
addEventHandler ( "onPickupHit", getRootElement(), pickupHit )

Just to make things clear.

Let say you're playing the map Freeroam in the gamemode Race. There are a lot of pickups there. Now I have a difference resource running (which I call "monitor") and I want to get a notice whenever a pickup gets hit by a player. Is this actually possible?

Old question:

How do I get the element ID of the vehicle the player drives? Just a quick question.

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...