Jump to content

createPickup model objects


DarkLink

Recommended Posts

Posted

Okay so I went to createPickup page on wiki, and notice this:

model: If the pickup is a custom model, this is the model id to use. Many non-pickup models can be used, though some may cause crashes. The following is a list of models designed to be used as pickups.

370: Jetpack

1212: Money (Wad of Cash)

1240: Health (heart)

1242: Armour

1272: House (blue)

1273: House (green)

1274: Money (dollar symbol)

1277: Save (floppy disk)

So is this the only objects models available for pickups? :S

I really want to use model : 1578 (drug_green) for my gamemode.

Is there a way to make it working?

Thanks in advance guys!

Posted

You can create a new pickup with a custom function, to rotate it etc.

I would suggest a colshape + the object of drug_green.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

No, if i'm right, it won't give it as a weapon, so you could use it with your own function.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

onPickupUse is when you PICK a pickup.

onPickupHit is when you HIT a pickup.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
onPickupUse is when you PICK a pickup.

onPickupHit is when you HIT a pickup.

Hm I guess I understand :)

Tryed a few examples and its okay.

Thanks castillo.

By the way do you know how to make a custom element for pickup model?

I tryed this:

on my EDF files, but creates a health pickup instead of flowers that is 325 model :S

I tryed to look on editor_main resources something about pickups but they dont use it on edf file, there must be another script I cant found it.. to learn from it.

So do you know how to make a custom element for a pickup model ?

Thanks in advance.

Posted

Actually, I don't use EDF, I never had to use it, sorry :/.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
I think you need to specify the weapon ID (flowers = 14).

Thanks for your reply :)

Yes it appears now the flowers as custom element, but there is somekind of bug with the position.

I place the element (flowers) then I change the position on map editor with arrows, you know ? and the selection cuboid change position but flowers keep on same position, do you know why ?

Thanks in advance.

EDIT: tryed this but still not working :

Posted

Okay guys so I updated my resources using the link which NikDelgad gave me, and I guess the problem persists.

I tryed what u say SDK, I change the position, saved, and then reloaded the map.. and the flower get new position, according to where I put it. so its fine.

But when I place the element and I try to change is position I just change the red selection cuboid, not the visual representation of the element, do you see?

Look this image as example, I tryed to move the flowers to the left and this is what happens:

68290678.png

Flower representation keeps on the same spot, but the selecion cuboid changed position.

So anyone know how to help me?

Thanks alot in advance!!!

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