Jump to content

getPickupModel


Morelli

Recommended Posts

Posted

I'm looking for a way to retrieve the model of a pickup.

The pickup I've created is a custom model, using the Lua code:

local pickup_whatever = createPickup ( 0, 0, 0, 3, 1272, 30000) 

The model ID that I have used is 1272 (Blue house). I've tried getPickupAmmo and getPickupAmount but they both return zero.

Any suggestions on how I can retrieve the model?

Posted

As far as i am awarethere isn't a function that will retrieve the model ID. You will have to store the model ID useing another method if you want to retrieve it.

Possibly GetElementModel would do it in DP3.

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...