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_id, Float:{ -20.0, -20.0, -20.0 }, Float:{ 20.0, 20.0, 20.0 });
entity_set_origin(entity_id, blabla... some origin here);
I can only kill it and see the death animation
PHP Code:
dllfunc(DLLFunc_Use, entity_id, 0);