Raised This Month: $ Target: $400
 0% 

Entity Use (Like a button)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 10-22-2015 , 14:50   Re: Entity Use (Like a button)
Reply With Quote #10

Code:
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_button"));

this should do it imo

and remove these lines
Code:
set_pev(ent, pev_classname, g_Classname);     engfunc(EngFunc_AllocString, "func_button");

and if you still can't get it working you can take a look at this plugin, there's a functionality that lets you create buttons in there

Last edited by jimaway; 10-22-2015 at 14:53.
jimaway is offline
 



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 22:18.


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