Skip to content

Conversation

@RabidAnteater
Copy link

@RabidAnteater RabidAnteater commented Apr 10, 2021

PlayerREF.GetEquippedItemId(0) returns 0 when a two-handed weapon is equipped
PlayerREF.GetEquippedObject(0) seems to work OK.

e.g. Output from PrintGroupItems()
[04/10/2021 - 08:33:50PM] PrintGroupItems called on group 1
[04/10/2021 - 08:33:50PM] 37 is -102131405, form is [Form < (020176F1)>]: Dragonbone Bow
[04/10/2021 - 08:33:50PM] Group icon is -102131405, form is [Form < (020176F1)>]: Dragonbone Bow

But output from
Debug.Trace("PlayerREF.GetEquippedObject(0) is " + PlayerREF.GetEquippedObject(0) + ", PlayerREF.GetEquippedObject(1) is " + PlayerREF.GetEquippedObject(1))
Debug.Trace("PlayerREF.GetEquippedItemId(0) is " + PlayerREF.GetEquippedItemId(0) + ", PlayerREF.GetEquippedItemId(1) is " + PlayerREF.GetEquippedItemId(1))

is
[04/10/2021 - 08:32:15PM] PlayerREF.GetEquippedObject(0) is [WEAPON < (000240D2)>], PlayerREF.GetEquippedObject(1) is [Form < (02014FCE)>]
[04/10/2021 - 08:32:15PM] PlayerREF.GetEquippedItemId(0) is 0, PlayerREF.GetEquippedItemId(1) is -102131405

PlayerREF.GetEquippedItemId(0) returns 0 when a two-handed weapon is equipped
PlayerREF.GetEquippedObject(0) seems to work OK.

e.g. Output from PrintGroupItems() 
[04/10/2021 - 08:33:50PM] PrintGroupItems called on group 1
[04/10/2021 - 08:33:50PM] 37 is -102131405, form is [Form < (020176F1)>]: Dragonbone Bow
[04/10/2021 - 08:33:50PM] Group icon is -102131405, form is [Form < (020176F1)>]: Dragonbone Bow

But output from 
Debug.Trace("PlayerREF.GetEquippedObject(0) is " + PlayerREF.GetEquippedObject(0) + ", PlayerREF.GetEquippedObject(1) is " + PlayerREF.GetEquippedObject(1))
Debug.Trace("PlayerREF.GetEquippedItemId(0) is " + PlayerREF.GetEquippedItemId(0) + ", PlayerREF.GetEquippedItemId(1) is " + PlayerREF.GetEquippedItemId(1))

is 
[04/10/2021 - 08:32:15PM] PlayerREF.GetEquippedObject(0) is [WEAPON < (000240D2)>], PlayerREF.GetEquippedObject(1) is [Form < (02014FCE)>]
[04/10/2021 - 08:32:15PM] PlayerREF.GetEquippedItemId(0) is 0, PlayerREF.GetEquippedItemId(1) is -102131405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant