View Issue Details

IDProjectCategoryView StatusLast Update
0000288Gameplay + OpenGL[All Projects] Featurepublic2017-02-17 09:50
ReporterMajor Cooke 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionno change required 
Summary0000288: Menu: Add pointer to opener
DescriptionWould it be possible to add an internal pointer to the player who has the menu open? Currently I'm attempting to use player[consoleplayer] but it errors out saying 'numeric type expected'.

Currently I'm relying on this:
for (int i = 0; i < MAXPLAYERS; i++)
{
    if (playeringame[i])
    {
        plr = players[i].mo;
        break;
    }
}


But this isn't necessarily pointing to the appropriate person, which I need to get things like inventory.
TagsNo tags attached.

Relationships

Activities

Major Cooke

Major Cooke

2017-02-17 09:00

reporter   ~0000639

Last edited: 2017-02-17 09:00

View 2 revisions

Nevermind, consoleplayer didn't work only because I had done it originally in the Init function. I didn't realize Init was called before the game load-up. consoleplayer can work anywhere else like the Ticker function if it's during the actual game time itself.

This can be closed.

Issue History

Date Modified Username Field Change
2017-02-17 08:29 Major Cooke New Issue
2017-02-17 09:00 Major Cooke Note Added: 0000639
2017-02-17 09:00 Major Cooke Note Edited: 0000639 View Revisions
2017-02-17 09:50 Graf Zahl Status new => closed
2017-02-17 09:50 Graf Zahl Resolution open => no change required