AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help in entities (https://forums.alliedmods.net/showthread.php?t=205637)

h3llzOr 01-12-2013 20:23

help in entities
 
hi all, i want to do an model whenthe player is stunned, but doesn't appear

Code:

{
    new origin[3];
    new parm2[1];
    new vec[3];
    new Float:rsize[2][3] = { {-50.0, -50.0, -50.0}, {50.0, 50.0, 50.0} };
    new Float:fOrigin[3];
    new roots_ent = create_entity ( "info_target" );
    new args[1];

    get_user_origin ( id, origin );

    parm2[0] = id;

    get_user_origin ( id, vec );
    fOrigin[0] = float ( vec[0] );
    fOrigin[1] = float ( vec[1] );
    fOrigin[2] = float ( vec[2] ) - 35.0;

    entity_set_string ( roots_ent, EV_SZ_classname, "roots" );
    entity_set_model ( roots_ent, "models/warcraft3/ensnare.mdl" );
    entity_set_int ( roots_ent, EV_INT_body, 3 );
    entity_set_int ( roots_ent, EV_INT_sequence, 0 );
    set_size ( roots_ent, rsize[0], rsize[1] );
    entity_set_origin ( roots_ent, fOrigin );

    args[0] = roots_ent;
    set_task ( ENSNARE_TIME, "Task_Destroy_Roots", 130+id, args, 1 );

    return PLUGIN_CONTINUE;
}

well the player is stunned, he can't move, but the model doesn't appear. it was must be like this
http://img853.**************/img853/9...nabys0002d.png


All times are GMT -4. The time now is 13:46.

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