Results 1 to 3 of 3
  1. #1
    dthnider's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    215
    Reputation
    10
    Thanks
    164
    My Mood
    Cheerful

    How to make SetKey change depending on HP? (Haven't coded for a while)

    Well, I haven't coded for a while and have been lazy and stupid the last couple days (check my latest threads, lols) so I'm running into a problem yet again.

    new QueuedBehavior(
    Cooldown.Instance(10000),
    new SetKey(-1, 2)))


    Shouldn't that make the respective enemy go to its 2nd form after (10000) time? It's behaving in its second & first form at the same time without waiting.

    Thanks!

  2. #2
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    I don't use SetKeys but here's how I would do it using States:
    HpLesserPercent.Instance(0.5f, SetState.Instance("wantedState"))

  3. #3
    dthnider's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    215
    Reputation
    10
    Thanks
    164
    My Mood
    Cheerful
    Quote Originally Posted by CrazyJani View Post
    I don't use SetKeys but here's how I would do it using States:
    HpLesserPercent.Instance(0.5f, SetState.Instance("wantedState"))
    Yeah, I remembered about HpLesserPercent literally 5 minutes after I posted this D: I'm such a dumbass when it's late at night.

Similar Threads

  1. How to make chams hack, aim bot or rate of fire for a gun?
    By Honeydews in forum Combat Arms Hack Requests
    Replies: 3
    Last Post: 08-29-2012, 06:18 AM
  2. [Solved] how to record with fraps and no lag!!!!---10k nx code for solution!
    By ccoollzach in forum Combat Arms Help
    Replies: 20
    Last Post: 02-04-2012, 11:02 AM
  3. Replies: 15
    Last Post: 01-24-2012, 02:30 PM
  4. [Help] How to make a URL open invisibly VB.NET (Current code supplied)
    By crazygamer53 in forum Visual Basic Programming
    Replies: 2
    Last Post: 11-20-2011, 08:12 PM
  5. How to make a "Changing" Avatar!
    By Lugares in forum Programming Tutorials
    Replies: 11
    Last Post: 03-30-2009, 06:40 AM