Frictional Games Forum (read-only)

Full Version: New item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been thinking about to create a new item.
But I don't know how to make a function if the item is used.
E.g. If item is used then FadeRadialBlurTo...
Are you asking when it is used in the inventory? Such as health or sanity potion. Combination? Such as a hammer to a chipper. or when an item is used in the environment, such as a key on a door or acid on an entity, etc?
Yes used in the inventory.
Its a potion and when it be used, the effect should be FadeRadialBlurTo
As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
(09-25-2012, 05:29 PM)Statyk Wrote: [ -> ]As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change it in a script?

(09-25-2012, 05:39 PM)ooadrianoo Wrote: [ -> ]
(09-25-2012, 05:29 PM)Statyk Wrote: [ -> ]As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change the effect it in the a script?
Sure, it's possible. Just know that it has to be one of the item types and it will still affect the same way. Just have a timer that checks for something such as health increase or sanity increase, etc.