PDA

View Full Version : Very very simple question.



a_person
07-28-2004, 12:00 AM
How do I get an ai to move to a ghost postion?

------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~

JediKirby
07-28-2004, 12:13 AM
There's a GREAT tut on it, called patrolling enemies, methinks. Also a plugin for even better AI control. Both work wonders, I suggest you try them. They're also great starts for learning AI coding.

JediKirby

------------------
jEDIkIRBY - Putting the Romance back into Necromancer.
Proud Leader of the Minnessassian Council

Live on, Adam.

a_person
07-28-2004, 02:19 AM
Thanks, ok I have that problem solved, but, now new problem, what line would I use to apply force grip to an ai.

------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~

a_person
07-28-2004, 10:23 PM
can someone tell me?

------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~

Ace1
07-28-2004, 10:39 PM
To force grip an ai you need to select the force power "force grip", hold it down and let get after the red rights show around it who you want to grip... j/k, OR you can do it by putting this in your cog.


DamageThing(victim, damage * rank / 2, 0x8, player);
// Force the victim to stay in place
SetActorFlags(victim, 0x40000);
// But prepare to free it again in 0.45 seconds
SetTimerEx(0.45, victim, GetThingSignature(victim), 0);
timer:
// This checks that the thing ref is still assigned to the same thing
if(GetThingSignature(GetSenderId()) == GetParam(0))
{
ClearActorFlags(GetSenderId(), 0x40000);
}

you need to set the player, victim, rank, and damage though

------------------
GetThingSignature(Ace1);

[This message has been edited by Ace1 (edited July 28, 2004).]

a_person
07-29-2004, 12:50 AM
Ok thanks ive got everthing now.

------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~