Jump to content
Sign in to follow this  
IceFLYER

Any way to undo a DoWatch on unit joining you?

Recommended Posts

I have a group of units that join the player.

The group as it stands have a

xxx doWatch "123"

in their init line (it keeps them from looking all over the place and slightly moving over time)

...anyway...when they do finally join me the player the units still are under the spell of the doWatch and they are still trying to look at "123" once we stop moving.

To fix this I just tell the group to have "no target"

But is there as way to put this into the init line of the waypiint when they join me???

Thanks all!

---IceFLYER

Share this post


Link to post
Share on other sites

Maybe

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

or

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

??

Or maybe get them to watch you just before they are joined to you?

Share this post


Link to post
Share on other sites

Neither of the above work in my experience. One thing I have not tried is, DoWatching and object, then deleteting the object.

Try getting it to watch a gamelogic, then deleteing the logic. I suspect it will try and watch position [0,0,0], the default pos returned for all Null Objects. But it's worth a try.

Deleteing objects works for similar problems, with dotarget e.t.c So it might work with DoWatch.

P.S for a quick laugh, get them to DoWatch themselves.

Share this post


Link to post
Share on other sites

deleteing the object they were watching didbn't work ...they must be seeing things at that point hahah...

the objNull method seems to work, although I didn't take them for an extended walk around, but in their currurt position they start acting as if they were not watching the object... so this method is a winner so far!

as for watching themeselves..hehe the one unit layed on the ground, stared into the digital earth and started spinning ...the others head kept going side to side..... hmm.....

we'lll pass that one...

thanks all!

now I got a this switchMove wit ha cycle waypoint question for another post.... but in the same setup as this

Share this post


Link to post
Share on other sites
Quote[/b] ]deleteing the object they were watching didbn't work ...they must be seeing things at that point hahah...

Thats odd, I just tested it in the editor. Worked fine for me. Just checking, but are you using dowatch with an object? And not an objects position. Something like:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Man01 DoWatch GameLogic01

I did noticed a slight difference between using the delete method and the ObjNull method. With ObjNull they return to pointing in the last direction they were watching.

When you delete the DoWatch target object, they turn towards the commander.

Either way, if it works the way you want them problem solved smile_o.gif

Share this post


Link to post
Share on other sites

It was without position coordinates. Deleted the object they were dowatching.

All is good now though. Thanks again!

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  

×