Raised This Month: $ Target: $400
 0% 

Entity question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XAT
Member
Join Date: Jul 2011
Old 07-09-2012 , 11:44   Entity question
Reply With Quote #1

Any way to create func_breakable / func_wall visible entity with custom size and material like DispatchKeyValue ? ( NOT a model )

I've created something like this but it isn't visible and touchable, in other words, dosen't exist.

PHP Code:
new entity_id create_entity("func_breakable");
    
DispatchKeyValue(entity_id"targetname""test_ent");
DispatchKeyValue(entity_id"material""2");
DispatchSpawn(entity_id);

entity_set_size(entity_idFloat:{ -20.0, -20.0, -20.0 }, Float:{ 20.020.020.0 });
entity_set_origin(entity_idblabla... some origin here); 
I can only kill it and see the death animation

PHP Code:
dllfunc(DLLFunc_Useentity_id0); 
XAT is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 07-09-2012 , 11:54   Re: Entity question
Reply With Quote #2

you need a model or sprite to make it visible
jimaway is offline
XAT
Member
Join Date: Jul 2011
Old 07-09-2012 , 12:02   Re: Entity question
Reply With Quote #3

As i was thinking.
Thanks.
XAT is offline
XAT
Member
Join Date: Jul 2011
Old 07-09-2012 , 12:35   Re: Entity question
Reply With Quote #4

Create entity, set it's size, give it a render ( like kRenderTransColor ), color it, but not set model.
Is this possible ?
XAT is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-09-2012 , 12:48   Re: Entity question
Reply With Quote #5

No.
Solid brushes with textures are created on map compile-time and there is set their texture and lightmap. You can't create them in-game. You must use a model.
__________________

Last edited by <VeCo>; 07-09-2012 at 12:49.
<VeCo> is offline
XAT
Member
Join Date: Jul 2011
Old 07-09-2012 , 12:52   Re: Entity question
Reply With Quote #6

Oh damn, so render applys on model not size.
Bet i can't set render on entity size defined by pev_mins, pev_maxs etc, right ?
XAT is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-09-2012 , 12:54   Re: Entity question
Reply With Quote #7

Yes, the render is assigned to the model. Mins and maxs are only for the solid part.
__________________

Last edited by <VeCo>; 07-09-2012 at 12:54.
<VeCo> is offline
Reply


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


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