Author Topic: [Solved] Is there a way to spawn an item without a brick?  (Read 1236 times)

^Title. I'm trying to spawn one in water to act as a float.
« Last Edit: June 12, 2016, 04:55:18 PM by Jervan »

%item = new Item()
{
    datablock = "yourDatablockItem";
    static    = "1"; //use this if you want to be able to pick it up again and again, otherwise set to "0";
};

missionCleanup.add(%item);

Wow I'm an idiot, thanks

    static    = "1"; //use this if you want to be able to pick it up again and again, otherwise set to "0";
Not true. It's wether the item is affected by gravity or not.

Not true. It's wether the item is affected by gravity or not.
Oh whoops
Learn something new everyday I guess lol

How do you set the position where the item spawns?

edit: nvm. pretty sure I can just add a position parameter:

%item = new Item()
{
    datablock = "yourDatablockItem";
    static    = "1"; //determines if affected by gravity
    position = %pos;
};

missionCleanup.add(%item);
« Last Edit: July 16, 2016, 03:16:50 AM by Farad »