I want to make the player invisible so you dont see 2 models in 1 .
i used set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,id)
But if you move or attack , you are not invisible any more . My friend said that i had to make a code that makes you invisible if you attacked or moved. Can you guys show me how to do that ?
Thx.
Code:
playerOption[id] = 1
user_kill(id,0)
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,id)
set_user_health( id, 200 )
give_item(id, "weapon_bigbang")
give_item(id, "weapon_finalflash")
give_item(id, "weapon_gallitgun")
give_item(id, "weapon_finishingbuster")
give_item(id, "weapon_kamehameha")
give_item(id, "weapon_burningattack")
new player_avatar = create_entity( "env_model" );
entity_set_int( player_avatar, EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_edict( player_avatar, EV_ENT_aiment, id );
entity_set_model( player_avatar, "models/player/uub/uub.mdl" );