Jump to content
Sign in to follow this  
Viper23rd

Stopping DoTarget

Recommended Posts

Dear community, I'm working on a script which reflects the damage you did on a friendly unit, then allowing you to apologise to the target, having a 50% chance he will accept, and then you both regain your HP, now I've a question:

Somewhere in my script I've used the command for the victim to target the shooter, and once I apologise I would like the victim to stop targeting the shooter, how would I do that, what would I need to target to stop targeting, basically?

Yours sincerely,

Share this post


Link to post
Share on other sites

I tried that but it didn't seem to work, the unit still kept targeting me.

Yours,

Share this post


Link to post
Share on other sites

I tried that as well, both before and after making the victim doTarget the shooter (me/player in this case) which neither seemed to work..

Yours,

Share this post


Link to post
Share on other sites

Interesting, it seems doTarget objNull does nothing, but commandTarget objNull works as expected (possibly only if the unit is in a group and not the leader)?

Ah, doWatch objNull works perfectly! I've added a note to the wiki.

Share this post


Link to post
Share on other sites

Trying it out now, I was thinking it had to be something with targeting 'Null' or some sorts, thank you.

Yours,

Edit #1:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_victim doWatch objnull

Seems to work perfectly, thank you!

Share this post


Link to post
Share on other sites
I find,
Quote[/b] ]unit doTarget ""
works...

That results in "Generic Error In Expression" (doTarget: type Any, expected Array/Object).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×