Author Topic: Item default spawn position  (Read 971 times)

how would i change a items default spawn position

If your wondering why im working on a item hover script....
« Last Edit: March 06, 2008, 07:51:57 PM by Helena »

If I'm not correct its somewhere in the DSO'd area of blockland.

If I'm not correct its somewhere in the DSO'd area of blockland.

You're not correct. Don't try and help people when you don't know what you're talking about.

==> What default spawn position?

Your one to talk Ephi, if you don't know what he needs help with, don't bother.

Your one to talk Ephi, if you don't know what he needs help with, don't bother.
He's trying to help....You are not.

I think he may mean like on which side of the block(?).

Kheyre, sometimes in order to appropriately help with a problem, you need to gather more details, otherwise you end up giving a solution to an irrelevant problem.

If he means item wrench spawns (as opposed to throwing an item or something) you can package the ItemData::onAdd() method like so:

Code: [Select]
package ItemPosition
{
     function ItemData::onAdd(%this,%obj)
     {
          %obj.setTransform(vectorAdd(%obj.getTransform(),"0 0 5 0 0 0 0"));
          Parent::onAdd(%this,%obj);
     }
};
activatePackage(ItemPosition);

For example, the above code would position all items 5 units above where they would normally spawn.

See Gikon?  I told you the EXACT same thing as Ephi in my server last night.  If you aren't familiar with setTransform(), getTransform(), vectorAdd(), et cetera, this is probably a bit more than you're ready to handle.  Also, the only way to get an item to hover is using scheduled transforms.  Come to my server sometime and i'll show you the hover feature I made.

Well i understand now trader. Thanks ephi and trader =3