I'm trying to copy a func_rotating to fix the linux bug in HL ( please don't steal my idea )
but when i copy a func_rotating, it works for a few seconds and after that it just stops, and this is not the linux bug, because you can stand on it.
i'm copying it with this code:
Code:
new stringa[64], Float:veca[3]
new newent = create_entity("func_rotating")
new i
for (i=0;i<=EV_SZ_weaponmodel;i++){
entity_get_string(ent,i,stringa,63)
entity_set_string(newent,i,stringa)
}
for (i=0;i<=EV_VEC_vuser4;i++){
entity_get_vector(ent,i,veca)
entity_set_vector(newent,i,veca)
}
for (i=0;i<=EV_INT_deadflag;i++){
entity_set_int(newent,i,entity_get_int(ent,i))
}
for (i=0;i<=EV_FL_fuser4;i++){
entity_set_float(newent,i,entity_get_float(ent,i))
}
for (i=0;i<=EV_ENT_euser4;i++){
entity_set_edict(newent,i,entity_get_edict(ent,i))
}
for (i=0;i<EV_BYTE_blending2;i++){
entity_set_byte(newent,i,entity_get_byte(ent,i))
}
Note: ent = the entity being copyed
Edit, i need dispatchspawn at the end. solved it.
plugin should come soon after
__________________