AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Create func_breakable with Flesh Material (https://forums.alliedmods.net/showthread.php?t=310626)

Celena Luna 09-12-2018 13:06

Create func_breakable with Flesh Material
 
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. :cry:

CrazY. 09-13-2018 07:42

Re: Create func_breakable with Flesh Material
 
pev_origin -> EngFunc_SetOrigin.

Celena Luna 03-03-2019 13:00

Re: Create func_breakable with Flesh Material
 
Bump....

Xalus 03-03-2019 14:26

Re: Create func_breakable with Flesh Material
 
https://wiki.alliedmods.net/CBreakable_(CS)

Try and play with "m_Material"


All times are GMT -4. The time now is 05:24.

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