Author Topic: Coding, that's gives you stuff.  (Read 1289 times)

All that I ask for is some coding which when you click on the brick, for example, it will give you an item, if you do not have any space, it will not give you it! I'm not sure if this is the right thread by the way, but I'm guessing this is right. Thank you!

EDIT: GOOD, RICH INFO AT THE BOTTOM OF THE FIRST PAGE.
« Last Edit: April 26, 2011, 01:48:32 AM by Derroith »

You click on a brick and it gives you stuff.
Eventing.


OnActivate >> Player >> additem(can be found on RTB) >> Gun

Really?

Or is this something else.

Oh, and this belongs in suggestions and requests.

It's for something I'm working on, it's an object, with a .dts

It's for something I'm working on, it's an object, with a .dts
So you want to create an item from only a .dts?

No, that doesn't work.

God dammit, it's a brick that gives you an item, that's what I'm making. I'm just wondering what the code is because I'm kind of new to Torque and I don't know what to do about this.

so, your basicly trying to make something simmilar to a JVS system (animated model-based brick), except when you click on it, an item is added to your invintory. is this correct?


« Last Edit: April 25, 2011, 09:25:06 PM by slimabob »


You were meant to read the rest of the topic, sorry. Here's the instructions that were 3 posts down from the one I linked to: http://forum.blockland.us/index.php?topic=151979.msg3604831#msg3604831

Alright, sorry.

Fixed post

God dammit, it's a brick that gives you an item, that's what I'm making. I'm just wondering what the code is because I'm kind of new to Torque and I don't know what to do about this.
God dammit, use events for forgets sakes


God dammit, use events for forgets sakes
God dammit, he's using it for a script for forgets sakes.

Alright! Thanks guys! This helped alot, it'll help with what I am working on.

just a bit of advice;
since you have had ths problem solved, before actually making said brick, add a bit of code to prevent people from adding events such as:
onactivate>player>setitem(or additem)[NOT THE ITEM YOU WANT THEM TO GET]
doing so would be a good way to silence the people who will most certainly be saying "or we could take said brick and put the events onactivate>player>setitem"