Author Topic: How do I make my item move after spawning it?  (Read 569 times)

I'm trying to create a new item but when it's created I want it to fly out at a certain 3F velocity, like the event itself does.

When I create an item using this code:

Code: [Select]
%spawnedItem = new Item()
{
datablock = %item;
position = %newpost;
};

It just kinda hangs around suspended in the location I specified in the position field, and then after a while, it sorta just falls/teleports to the ground. How would I give it a certain velocity, for example, make it shoot up with the velocity 0 0 10?

If you know any add-ons that do this let me know.

solution:

Code: [Select]
%spawnedItem = new Item()
{
datablock = %item;
position = %newpost;
};

%spawnedItem.setVelocity("0 0 10");

i was looking at the wrong list of methods