Skip to content

Entity.ownerNum & Entity.frame are "linked" to the same value in a gametype script #488

@qwertyuiopasd1113

Description

@qwertyuiopasd1113
Entity @broadcasterEnt = @G_SpawnEntity( "capture_indicator_sprite" );
@broadcasterEnt.owner = @ent;
broadcasterEnt.ownerNum = ent.entNum;
broadcasterEnt.frame = 64;
broadcasterEnt.type = ET_RADAR;
broadcasterEnt.solid = SOLID_NOT;
broadcasterEnt.modelindex = G_ImageIndex( "gfx/indicators/radar" );
broadcasterEnt.svflags = ( SVF_BROADCAST | SVF_OWNERANDCHASERS );
broadcasterEnt.team = ent.team;
broadcasterEnt.origin = Vec3(0,0,0);

(ent should be the players entity)

When checking the value of broadcasterEnt.ownerNum, it is 64. When the order of setting ownerNum and frame is switched, broadcasterEnt.ownerNum is set correctly, but broadcasterEnt.frame is set to the same value as ownerNum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions