Raised This Month: $ Target: $400
 0% 

[HELP] Model attachment question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RIKUSYO
Junior Member
Join Date: Jul 2008
Old 08-07-2011 , 13:39   [HELP] Model attachment question
Reply With Quote #1

I'm testing attach model to player.
but visible only shadow.
I need help.

[IMG]http://img838.**************/img838/5549/helplz.jpg[/IMG]

Uploaded with **************

Code:
#define MDL_TEST "models/headcrabclassic.mdl"

new ent = CreateEntityByName("prop_dynamic");
if ( IsValidEdict( ent ) )
{
    new String:tName[32];
    
    GetEntPropString(client, Prop_Data, "m_iName", tName, sizeof( tName ) );
    DispatchKeyValue(ent,    "targetname",    "head_ent");
    DispatchKeyValue(ent,    "parentname",    tName);
    SetEntPropEnt(ent, Prop_Send, "m_hOwnerEntity", client );
    SetEntityModel( ent, MDL_TEST );
    DispatchSpawn( ent );
    SetVariantString( "!activator" );
    AcceptEntityInput(ent, "SetParent",                client, ent, 0);
    SetVariantString( "head" );
    AcceptEntityInput(ent, "SetParentAttachment",    client, ent, 0);
}
RIKUSYO is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 08-07-2011 , 13:43   Re: [HELP] Model attachment question
Reply With Quote #2

Wrong section. Post this here http://forums.alliedmods.net/forumdisplay.php?f=107
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
RIKUSYO
Junior Member
Join Date: Jul 2008
Old 08-07-2011 , 13:44   Re: [HELP] Model attachment question
Reply With Quote #3

Oh. I'm wrong section.
this question for sourcemod.
RIKUSYO is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:22.


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