![]() |
Command to force a NPC to attack a given target - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: Command to force a NPC to attack a given target (/Thread-Command-to-force-a-NPC-to-attack-a-given-target) Pages: 1 2 |
Command to force a NPC to attack a given target - Boydon - 04-29-2012 05:22 AM As the subject say. I remember there i command to force an npc to a attack a given target, but i cant remember. It is neither .attack nor .xattack RE: Command to force a NPC to attack a given target - Fallout - 04-29-2012 05:45 AM .xattack - you select target what will attempt to attack you. RE: Command to force a NPC to attack a given target - Boydon - 04-29-2012 05:51 AM Maybe I din't explain well: I want the NPC to attack the target I decide not me. That is what I mean. ![]() RE: Command to force a NPC to attack a given target - x77x - 04-29-2012 09:39 AM in a speech file... ON=@SeeNewPlayer SAY Brains! ATTACK or to make NPCs fight, give one a berserker brain... NPC=brain_beserk RE: Command to force a NPC to attack a given target - Boydon - 04-29-2012 10:36 PM This is not what I asked for: I don't need to know how to script it (I already do). What I would like to know is the ingame command that works like this:
There used to be, I'm sure. I just can't remember it. RE: Command to force a NPC to attack a given target - Anarch Cassius - 04-30-2012 06:01 AM Are you sure this is part of default and wasn't somebody's script package? In any case, untested and off the top of my head... (and 56b syntax though I don't think it matters here) [FUNCTION Attackorder] TARGETF Attackorder1 [FUNCTION Attackorder1] TARGETF Attackorder2 <TARG> [FUNCTION Attackorder2] TRYSRC <ARGS> TARG.ATTACK RE: Command to force a NPC to attack a given target - Crusader - 04-30-2012 06:40 AM point is that is not a scripting issue.... the problem is that when he try to do .attack or .xattack on an NPC to let this npc attack another target (player or other NPC) the result is that the first targetted NPC will attack himself (the GM) and he is trying to avoid this. So without scripting... as far as i undestand he just want to know a command that let an NPC attack another one, prolly for Roleplay/quest purpose. RE: Command to force a NPC to attack a given target - Anarch Cassius - 04-30-2012 07:32 AM Yes, I get all that. ATTACK always attacks the source, so that behaviour is expected and normal. Since I don't know of the command he wants or if it ever existed I just wrote it from scratch. Add that script and put the command in the Plevel and .Attackorder should do exactly what he wanted. Assuming I did it right of course. RE: Command to force a NPC to attack a given target - x77x - 04-30-2012 09:16 PM there is no attack command its ATTACK scriptside and 51a has no function... just saying RE: Command to force a NPC to attack a given target - Khaos - 05-01-2012 03:54 AM Just script the function using targeting code. |