Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#563086 16/02/15 03:35 PM
Joined: Jan 2015
K
journeyman
OP Offline
journeyman
K
Joined: Jan 2015
In the mod i'm making i'd like it to be possible for the player to know that certain items are more deeply interacteable, ie it's possible to poison a barrel of water with magical posion dart, or use a lore skill on something to find out about it. The ideal way for this to work is that if the player hovers over the item with the mouse cursor turns the mouse cursor into those little gears and the item becomes outlined with white. What i'm wondering is if it's possible to make any item react this way to when the player puts the mouse cursor over it, like a ship or a tree for example, or is that somehow hardcoded into certain items like chairs?

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
You can do it a couple of ways. I have a rock in my mod that leads to a secret lair for example.

There's a script code - and I'm not 100% sure what it is off the top of my head but it's something like "SetItemIsInteractable(ITEM_Item, Bool);"

You could also just populate the OnUse field in the sidebar with something, then reload the level. Either way should work.

Joined: Jan 2015
K
journeyman
OP Offline
journeyman
K
Joined: Jan 2015
great thanks.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5