Post: How to get an Entity's model?
07-25-2015, 11:52 PM #1
anthonything
Space Ninja
(adsbygoogle = window.adsbygoogle || []).push({}); Does anyone know? Im making a new version of prop hunt and i would like to know how to get the model of an entity. Code so far

    if(self fragbuttonpressed()) //monitor button
{
trace=bulletTrace(self GetTagOrigin("j_head"),self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 1000000,true,self); //get point
player.spawnedPlayerModel1 = spawn("script_model", player.origin); //spawn a temporary model



//player.spawnedPlayerModel1 SetModel(/*Your Answer*/);



self iprintln(isDefined(trace["model"])+" "+trace["entity"]);//Debug info for a fix
player.spawnedPlayerModel1 MoveTo(player.origin, 0.01); //Code to move model initially


self thread spawnPlayerModel(player, player.spawnedPlayerModel1); //This is Scars code to attach the model
wait 2.0;//Wait so it doesnt set several times

}
(adsbygoogle = window.adsbygoogle || []).push({});
07-26-2015, 12:31 AM #2
Loz
Vault dweller
Originally posted by anthonything View Post
snip


You must login or register to view this content.

The following user thanked Loz for this useful post:

anthonything
07-26-2015, 01:11 AM #3
anthonything
Space Ninja
Perfect. Oh and btw i love your Zombies Menu. It is honestly fantastic.

The following user thanked anthonything for this useful post:

itsSorrow
07-26-2015, 01:22 AM #4
itsSorrow
In my man cave
Originally posted by anthonything View Post
Perfect. Oh and btw i love your Zombies Menu. It is honestly fantastic.


Its better then fantastic

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo