Blockland Forums > Modification Help
How would you connect to the object of a dropped item?
ottosparks:
For instance, if I were to drop a wrench, how could I connect to that dropped wrench and make it, say, have a variable?
Also, another quick question; Is there a "scripting version" of onActivate? If so, what is it? onTrigger, right? got it
lilboarder32:
--- Quote from: ottosparks on June 13, 2010, 02:06:05 PM ---
Also, another quick question; Is there a "scripting version" of onActivate? If so, what is it? onTrigger, right? got it
--- End quote ---
Use Player::activateStuff instead of armor::onTrigger
ottosparks:
--- Quote from: lilboarder32 on June 13, 2010, 04:31:08 PM ---Use Player::activateStuff instead of armor::onTrigger
--- End quote ---
If I were to be setting a brick to automatically set events, I would do that? That's what I really need to know...
Destiny/Zack0Wack0:
--- Quote from: ottosparks on June 13, 2010, 05:22:20 PM ---If I were to be setting a brick to automatically set events, I would do that? That's what I really need to know...
--- End quote ---
That's completely different to what you asked for. If you were setting events automatically then you need to look at JVS Content's server.cs on line 962 to line 977.
As for getting the object ID of an item you drop, I'm fairly sure serverCmdDropTool(%client) returns the item object ID that was just made.
ottosparks:
--- Quote from: Destiny/Zack0Wack0 on June 13, 2010, 06:18:48 PM ---As for getting the object ID of an item you drop, I'm fairly sure serverCmdDropTool(%client) returns the item object ID that was just made.
--- End quote ---
hrm. I was thinking that just made you drop the item. But it does that as well.
so. then I would use ItemData::stuffHere from then on?