Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chase Problem.. help?
Bridge Offline
Posting Freak

Posts: 1,971
Threads: 25
Joined: May 2012
Reputation: 128
#6
RE: Chase Problem.. help?

(05-20-2013, 05:51 PM)Bonehead Wrote:
(05-20-2013, 05:30 PM)Bridge Wrote: I don't think you understand. The function cannot accept it. The function declaration makes no mention of a Boolean variable, and therefore it is impossible to pass a Boolean variable into it as a parameter. It changes literally nothing, because "true" doesn't mean anything in this context. Does the function not do what you want if you just pass in a string?

EDIT: As in:

ShowEnemyPlayerPosition("servant_grunt_2");

This should make servant_grunt_2 run towards the player.

That's the thing. I didn't understand. I just started scripting a few days ago with no previous experience or understanding of it, but thank you for pointing out what I did wrong. With almost everything I'm using requiring the True value at the end, it sort of became a habit rather than actual known knowledge. I will give this a shot.

EDIT: That did the trick. Thank you.

No problem, I'm glad you sorted out your problem.
05-20-2013, 06:07 PM
Find


Messages In This Thread
Chase Problem.. help? - by Bonehead - 05-20-2013, 04:59 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 05:13 PM
RE: Chase Problem.. help? - by Bonehead - 05-20-2013, 05:20 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 05:30 PM
RE: Chase Problem.. help? - by Bonehead - 05-20-2013, 05:51 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 06:07 PM



Users browsing this thread: 1 Guest(s)