AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can you guys help me out? (https://forums.alliedmods.net/showthread.php?t=12393)

strizerdragon 04-14-2005 14:59

Can you guys help me out?
 
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" );

XxAvalanchexX 04-14-2005 16:50

Code:
set_entity_visibility(id,0);

That tells the game not to even bother drawing the entity.

strizerdragon 04-15-2005 15:33

it doesnt show the new model.
 
it doesnt show the new model, can you give me a codesnip?


All times are GMT -4. The time now is 09:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.