Raised This Month: $ Target: $400
 0% 

More entity woes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mugwump
Senior Member
Join Date: May 2004
Old 06-22-2004 , 13:46   More entity woes
Reply With Quote #1

As I posted in another thread I have been trying to create a dummy player entity like a wax figure, I have tried using similar code to that used in the sh_beyonder superhero as well as the code in the Ent Copying thread posted here earlier.

I have no problem with creating the entity, settings its attributes and its origin, in the case of the beyonder like example it does what it should, moves when I move, etc.My problem is no matter what I try the only model I can get to stick on the entity is the first counter-terrorist model.

All of the CS models are precached in plugin_precache().

If I explicitly try this:
entity_set_model(myentity, "models/player/terror/terror.mdl")

it either spawns the entity with no model (its not visible) or that first CT model appears.

I have also tried this approach:
entity_get_string(id, EV_SZ_model, arg, 63)
entity_set_string(myentity, EV_SZ_model, arg);

to copy the model I currently am using, it only displays that first CT model.

Anyone have any suggestions for what might be wrong or what I should try, this is getting frustrating.

Thanks,
Mugwump
Mugwump is offline
 


Thread Tools
Display Modes

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 14:37.


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