About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
Item Physic
Author Message
siwykon Offline
Member

Post: #1
Item Physic
When I create Item in Inwentory witch that:

Quote:Game::ObjParams &obj=*Game::Objs("Data/Obj/Items/Armors/01/Spodnie.obj");
InvGui.inv->items.New().create(obj);

I see that in the world is created physic from this item and it have collisions witch player (not like item added from the world [that items have physic witch no collisions when are was added to inwentory])!

I want to remove this physic in creating moment!
Is it posible? If Yes then how (please give me small example).
04-28-2011 04:00 AM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #2
RE: Item Physic
Quote:.actor.active(false);
04-28-2011 06:25 AM
Find all posts by this user Quote this message in a reply
siwykon Offline
Member

Post: #3
RE: Item Physic
But I don't have identifier to Item!
Item isn't created in world and I don't know how get Item identifier!
(This post was last modified: 04-28-2011 08:33 AM by siwykon.)
04-28-2011 07:02 AM
Find all posts by this user Quote this message in a reply
menajev Offline
Member

Post: #4
RE: Item Physic
Code:
InvGui.inv->items.New().create(obj).actor...
is not working?
04-28-2011 09:18 AM
Find all posts by this user Quote this message in a reply
siwykon Offline
Member

Post: #5
RE: Item Physic
Error:
expression must have class type
04-28-2011 10:10 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Item Physic
Item &item=InvGui.inv->items.New();
item.
04-28-2011 10:20 AM
Find all posts by this user Quote this message in a reply
siwykon Offline
Member

Post: #7
RE: Item Physic
Problem solved:

Quote:Game::ObjParams &obj=*Game::Objs("Data/Obj/Items/Armors/01/Spodnie.obj");
InvGui.inv->items.New().create(obj);
InvGui.inv->items.last().actor.active(false);
(This post was last modified: 04-28-2011 01:33 PM by siwykon.)
04-28-2011 01:32 PM
Find all posts by this user Quote this message in a reply
Post Reply