I'd like to place a dagger in my map ("ceremony_knife"), but only for aesthetic purposes.. So I wanted to know if anybody knows a way to make the item not pickable, or, if it's not possible, to put a script that removes the knife from the inventory when you pick it up! Thank you very much and i hope my english is comprehensible!
OnEnter()
{
SetEntityInteractionDisabled("ceremony_knife", true);
}
(04-10-2013, 09:11 PM)Streetboat Wrote: [ -> ]OnEnter()
{
SetEntityInteractionDisabled("ceremony_knife", true);
}
Thank you very much, this will be very useful! I couldn't find anything on the internet, so this will be helpful also to other people (i hope)!
Thank you again
P.S.: I'll put your name in the credits, my story will be called "Monsters", but I've just started so I need some time to finish it!
(04-11-2013, 03:02 PM)AtraNox Wrote: [ -> ] (04-10-2013, 09:11 PM)Streetboat Wrote: [ -> ]OnEnter()
{
SetEntityInteractionDisabled("ceremony_knife", true);
}
Thank you very much, this will be very useful! I couldn't find anything on the internet, so this will be helpful also to other people (i hope)!
Thank you again
P.S.: I'll put your name in the credits, my story will be called "Monsters", but I've just started so I need some time to finish it!
If you like to have custom text you need to work in the LANG file
If you dont know i can tell you how you can change the title and description
(04-10-2013, 06:52 PM)AtraNox Wrote: [ -> ]I'd like to place a dagger in my map ("ceremony_knife"), but only for aesthetic purposes.. So I wanted to know if anybody knows a way to make the item not pickable, or, if it's not possible, to put a script that removes the knife from the inventory when you pick it up! Thank you very much and i hope my english is comprehensible!
Back to the first question:
Disabling interaction will not make it into a not-item. This means it will still have a blue glow around it.
What you can do it to back up the files, open it in the model editor, and make it an object instead of an item, in UserDefined Variables
(04-16-2013, 12:22 AM)Streetboat Wrote: [ -> ][url]http://wiki.frictionalgames.com/hpl2/amn..._functions[/url] this should help in the future
I already known this site, but I didn't find what I was looking for.. I'll be more careful next time xD
(04-16-2013, 09:37 AM)BeeKayK Wrote: [ -> ] (04-10-2013, 06:52 PM)AtraNox Wrote: [ -> ]I'd like to place a dagger in my map ("ceremony_knife"), but only for aesthetic purposes.. So I wanted to know if anybody knows a way to make the item not pickable, or, if it's not possible, to put a script that removes the knife from the inventory when you pick it up! Thank you very much and i hope my english is comprehensible!
Back to the first question:
Disabling interaction will not make it into a not-item. This means it will still have a blue glow around it.
What you can do it to back up the files, open it in the model editor, and make it an object instead of an item, in UserDefined Variables
Thank you, I'll do that!