Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Akatosh on Sat 26/08/2006 14:16:20

Title: SetCursorMode for objects?
Post by: Akatosh on Sat 26/08/2006 14:16:20
Is there a SetCursorMode for Objects?

I've just been wondering... is it possible to set the cursor mode to an inventory object with a script command like mouse.SetCursorMode[iKey]?

Why this question
This'd be nice, if you for example got an RPG which features QuickUseSlots, such as BG2 or wanted to give the player an item into the hand rather than the inventory (if you neither want him to carry it around nor waste a cursor mode for this nor just wanna player.LoseInventory[Key] on Player Leavey Room.)

If there is no such scripting command...
(which I both expect and fear), have you got a constructive idea how to Script Trickster this?
Title: Re: SetCursorMode for objects?
Post by: SSH on Sat 26/08/2006 14:18:31
Try setting mouse mode to useinv, then setting player.ActiveInventory
Title: Re: SetCursorMode for objects?
Post by: Akatosh on Sat 26/08/2006 14:46:35
thx 'll try this