Making a character "doing something else"

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Making a character "doing something else"

Post by mr bubbles »

I'm having a brain fart atm :P

How do I make a character in use, like he's already performing another skill. I have a script I want the player to treat like a skill when using it, so he cant use any skills when running it.

cheers
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

this is done by attaching the script to them. The code would go something like this...

Code: Select all

  if (who.attached)
    SendSysMessage(who, "You are already doing something else.");
    return;
  endif
  Attach(who);
if you come to a point where the code in the script should still run but it shouldn't stop the char from doing something else anymore, call Detach(who);
Post Reply