SphereCommunity
Attack problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Attack problem (/Thread-Attack-problem)



Attack problem - jdchixin - 02-22-2013 01:16 PM

As we know, the body does not rotate when attack, only near the enemy will turn.

How to make player turn the body to the enemy when we attact?


RE: Attack problem - admin phoenix - 02-22-2013 04:31 PM

use face=<src.uid> or src.face=<uid> in the trigger @hit


RE: Attack problem - Coruja - 02-22-2013 06:02 PM

something like this
Code:
ON=@Attack
SRC.FACE <UID>
if it doesn't work, try using FACE <SRC>


RE: Attack problem - RanXerox - 02-23-2013 01:32 AM

Maybe this COMBAT_FACECOMBAT sphere.ini setting affects it too?

// Extra combat flags to control the fight (default:0, 0.55i compatible)
// COMBAT_NODIRCHANGE 00001 // Not rotate player when fighting (like was in 0.51a)
// COMBAT_FACECOMBAT 00002 // Allow faced combat only (recommended)
// COMBAT_PREHIT 00004 // allow prehit for close combat. first hit is instant (delay 0.1sec)
// COMBAT_USE_RESISTANCE 00008 // use character props RES* against oldfashioned damage types
// COMBAT_SPECIALDAMAGE 00010 // use character tags TAG.*DAMAGE to apply additional damage
// COMBAT_DCLICKSELF_UNMOUNTS 00020 // unmount horse when dclicking self while in warmode
// COMBAT_ALLOWHITFROMSHIP 00040 // Allow attacking opponents from ships
// COMBAT_OSIDAMAGEMOD 00080 // modify weapon damage OSI-style (taking anatomy, tactics, lumberjacking into account)
// COMBAT_ARCHERYCANMOVE 00100 // firing bow while moving
// COMBAT_STAYINRANGE 00200 // abort attack swing when out of range instead of waiting to come back in range
//
// COMBAT_STACKARMOR 01000 // If a region is covered by more than one armor part, all AR will count
// COMBAT_TARGETTEDHIT 02000 // Allows setting of preferred hit area by TAG.HITPREFERENCE
CombatFlags=040|01000


RE: Attack problem - Mordaunt - 02-23-2013 01:58 AM

I beleive SRC.FACE or FACE <whatever> only actually works on NPC


RE: Attack problem - jdchixin - 02-23-2013 12:24 PM

sphere ini Can not solve this problem
040 // Allow attacking opponents from ships
0100 //is bow

on=@attact
face <src.uid>
is right

but it worked only once,unless you change the attacttarget


RE: Attack problem - Ultima One - 02-27-2013 03:44 AM

use @hit or @gethit instead of @attack as that only fires once.

Also, COMBAT_NODIRCHANGE 00001 - remove this from combat flags if you have it and add 00002. Same for magic. It's what we added to stop players facing.


RE: Attack problem - jdchixin - 02-27-2013 06:39 PM

You don't understand what I mean。