AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   entity model name over current model (https://forums.alliedmods.net/showthread.php?t=12326)

Prelithe 04-12-2005 05:12

entity model name over current model
 
Hey,

this is basically a problem relating the esf and the model changing.

You know how since evm cannot change the models directly, they change the model by adding an entity over the prvious entity and making it invisible ( i think...), well how do I retrieve the name of the model that the entity is using?

XxAvalanchexX 04-12-2005 15:30

If you have the entity index, use entity_get_string(ent,EV_SZ_model,variable,ma xLen)

Prelithe 04-13-2005 03:07

I tryed that, but it gets this crap that isn't useful...here's my code can u help see what may be the problem?

Code:
public DetectModel(id) {    new model[33]    entity_get_string(id,EV_SZ_model,model,32)    client_print(id, print_center, model)     return PLUGIN_HANDLED; }

Lord of Destruction 04-13-2005 07:26

For ESF Model detecting use modelindex or get_user_info( id, "model", ... )
if you are trying to find the corresponding 'Avatar' in Evolution ... Well, good luck in seeking :twisted: :twisted: :twisted:

XxAvalanchexX 04-13-2005 15:59

Quote:

Originally Posted by Prelithe
it gets this crap that isn't useful...

Mind showing us what "this crap" is?

Prelithe 04-13-2005 16:35

thx Lord of Destruction i'll try it out when i get home

@ Avalanche - it's like random symbols

Prelithe 04-14-2005 02:37

could you at least give me a hint...i aint trying to make what you guys are doin, i just wanna detect the model....if you check the corona-bytes forum you'll see what i'm trying to accomplish

LynX 04-27-2005 04:59

YOu need to find model array name of theirs.
CoreAvatars[33] I think.


All times are GMT -4. The time now is 10:01.

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