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
(ent should be the players entity)
When checking the value of
broadcasterEnt.ownerNum, it is 64. When the order of settingownerNumandframeis switched,broadcasterEnt.ownerNumis set correctly, butbroadcasterEnt.frameis set to the same value asownerNum