Posts
371
Respect
160Add +1
Forum Rank
Perk Hacker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now! for( i = 0; i < cubes.size; i++ ) {
// here I get the origin (org); everything ok
model = spawn( "script_model",org );
model.angles = (0,0,0);
model.targetname = "round_break_weapon_reward";
model.weap = weapons[i];
weaponname = getWeaponModel( weapons[i] );
model setModel( "tag_origin" );
model = playFxOnTag( level._effect[ "powerup_on" ], model, "tag_origin" );
model setModel( weaponname );
model thread rotateGun();
model thread weaponGetWait( cubes[i] );
iprintlnbold(weaponname);
}



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
model = playFxOnTag( level._effect[ "powerup_on" ], model, "tag_origin" );
u re-defined 'model' as an fx id so nothing underneath that works on the model anymore.
take out 'model = ' and leave just 'playFxOnTag( level._effect[ "powerup_on" ], model, "tag_origin" );'
I don't know why I made that. 