Raised This Month: $48 Target: $400
 12% 

Create func_breakable with Flesh Material


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 09-12-2018 , 13:06   Create func_breakable with Flesh Material
Reply With Quote #1

PHP Code:
public Create_ItemBox(typeFloat:Origin[3])
{
    new 
entent engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"func_breakable"))
    if(!
pev_valid(ent)) return

    
set_pev(entpev_classname"item_box")

    
fm_set_kvd(ent"material"3"func_breakable")
    
fm_set_kvd(ent"health"Item_Health[random_num(04)], "func_breakable")
    
fm_spawn(ent))

    
engfunc(EngFunc_SetSize,ent,Float:{-20.0, -20.00.0},Float:{20.0,20.020.0})

    
set_pev(entpev_originOrigin)

    ...


I am trying to create func_breakable with flesh material. I don't know why but when I hit it with knife, it make the glass material sound, not the flesh material sound.
__________________
My plugin:

Last edited by Celena Luna; 09-12-2018 at 13:07.
Celena Luna is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 09-13-2018 , 07:42   Re: Create func_breakable with Flesh Material
Reply With Quote #2

pev_origin -> EngFunc_SetOrigin.
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Check my Aliens vs. Predator: currently offline

I hate motherfuckers slowhacks!!!G]
CrazY. 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 02:06.


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