![]() |
Flag archercanmove - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Flag archercanmove (/Thread-Flag-archercanmove) |
Flag archercanmove - Indiaret - 03-10-2019 05:39 AM Hi all, need to help with shoot while running with bow. Not sure if flag statf_archercanmove is working. Works only with combatflags COMBATF_ARCHERYCANMOVE, but I need it only for bow. Any solution about this ? Code: [events e_combat_system] sphere_skills: Code: [SKILL 31] RE: Flag archercanmove - Coruja - 03-10-2019 07:04 AM probably your code is removing the flag instead add it to add flags you must use: Code: FLAGS |= statf_archercanmove //which is a shortcut for FLAGS=<FLAGS> | statf_archercanmove and to remove it: Code: FLAGS &= ~statf_archercanmove //which is a shortcut for FLAGS=<FLAGS> & ~statf_archercanmove EDIT: if you just want use these flags on bows you can also move this code directly to t_weapon_bow, this will just set/remove the flag 1x at item equip/unequip instead keep running the same code again at every @SkillStart Code: [TYPEDEF t_weapon_bow] RE: Flag archercanmove - Indiaret - 03-10-2019 08:56 PM Right, thank you man, here was problem. I have another question ... Can I disable the animation of weapon with bow ? It makes little 'spikes' while running, so it could makes in PvP problem. You knbw, I have attack and every @hitTry it makes little lag backward due to animation of weapon. RE: Flag archercanmove - Coruja - 03-11-2019 08:05 AM animations are not played when anim value is < 0, so I don't know if this will break something, but you can try set LOCAL.Anim=-1 on char @HitTry trigger |