Skip to content

es playerget primary and secondary #37

@ReQ220

Description

@ReQ220

Hi! I am trying to get the primary or secondary player's weapon. I'm getting errors.

block load
{
    es_xset secondary_variable 0
    es_xset primary_variable 0
}

event player_jump
{
    es playerget primary primary_variable event_var(userid)
	es playerget secondary primary_variable event_var(userid)
    es_msg server_var(primary_variable) is the primary weapon!
	es_msg server_var(secondary_variable) is the secondary weapon!
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions