Quote:
Originally Posted by proffs
Guys that is justa typo and it will still not work if I remove that typo,,,,
Check the hamsandwich.inc which i quoted on
|
Oh sorry, I missread
Then just
PHP Code:
new ent = create_entity("info_target")
if ( !is_valid_ent(ent) ) return 0
entity_set_string(ent, EV_SZ_classname, g_block_classname)
entity_set_int(ent, EV_INT_solid, SOLID_BBOX)
entity_set_int(ent, EV_INT_movetype, MOVETYPE_NONE)
RegisterHamFromEntity(Ham_TraceAttack, ent, "shoot_item")
Or register at any time
PHP Code:
new ent
while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", BLOCK)) != 0)
{ //requires fakemeta
RegisterHamFromEntity(Ham_TraceAttack, ent, "shoot_item")
}
__________________