Results 1 to 10 of 12

Thread: Model name

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    trace[ "entity" ] is either the player, any other entity (script-models etc) or undefined

    I do not know if your player has a static model, the trace-entity will show it as a player.

    If so, check for these cases and pront the name:

    PHP Code:
    ent trace"entity" ];

    if( 
    IsDefinedent ) && IsPlayerent ) )
        
    IPrintLnBoldent.name ); 

    Also: you can only 'detect' models that are scrip-models. This means they must be entities (either set in the radiant or spawned via script). Normal models (like trees, barrels, tables etc.) cannot be detected via bullettrace afaik.

    Also: in your script: you should add a wait-statement in there, otherwise it will issue an error.

  2. The Following 2 Users Say Thank You to serthy For This Useful Post:

    kung foo man (17th April 2017),strainik (17th April 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •