Jump to content
Sign in to follow this  
KingN

Domove not working

Recommended Posts

When I put guy1 domove getpos player or guy1 domove [1000,1500,0] or whatever, the guy1 doesn't seem to do anything. Yes, I've written the names and conditions correctly but still it doesn't do anything. It just stands there still. Could anybody help me? confused.gif

Share this post


Link to post
Share on other sites

If that guy1 isn't stopped and it's "MOVE" AI is not disabled,

then you have a real problem there! confused.gif

Share this post


Link to post
Share on other sites

Ah, I solved the problem. The problem was that when the guy1 is in building on upper level it won't move but when it's out of the house it will. Stupid isn't it? But thanks Laury!

Share this post


Link to post
Share on other sites

King Nothing or LauryThorn:

Is this what I think it is? Does this order a unit to move to player's position?confused.gif

I think waypoints cannot be placed at different elevations (2nd floor of building).

Can any of you tell me how units can kill civilians??? I have used DoFire and DoTarget to order enemy units to execute civilians (rescue the hostage mission), and the little bastards will not shoot the civilian. Of course if the hostage was a WEST or RESISTANCE there would be no problem.

Share this post


Link to post
Share on other sites

unitname doMove position

will cause the "unitname" to move to "position".

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @ May 22 2002,15wow.gif)</td></tr><tr><td id="QUOTE">King Nothing or LauryThorn:

Is this what I think it is? Does this order a unit to move to player's position?<!--emo&confused.gif

I think waypoints cannot be placed at different elevations (2nd floor of building).

Can any of you tell me how units can kill civilians??? I have used DoFire and DoTarget to order enemy units to execute civilians (rescue the hostage mission), and the little bastards will not shoot the civilian. Of course if the hostage was a WEST or RESISTANCE there would be no problem.<span id='postcolor'>

Yep, the other command means that guy1 move to players position. Getpos script gets the x,y,z coordinates of the given target. getpos player gets the coordinates of the player for example.

You can get the civilians hostile to east by grouping it with a west unit and vice versa. Note that you can also make an east unit hostile to another east unit by grouping it with a west unit wink.gif.

Share this post


Link to post
Share on other sites

Here is definition for guerilla soldier from mission.sqm:

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

class Item3

{

side="GUER";

class Vehicles

{

items=1;

class Item0

{

position[]={1307.143188,65.474998,5958.939941};

azimut=45.000000;

id=194;

side="GUER";

vehicle="Hunter";

leader=1;

rank="CORPORAL";

skill=0.200000;

text="man2";

markers[]={};

init="this setbehaviour ""CARELESS""; this switchmove ""EffectStandSitDown""";

};

};

};

<span id='postcolor'>

I haven't tried it, but I have read here that you can

manually change unit's side by editing the value of

SIDE to EAST or WEST or whatever..

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (King Nothing @ May 22 2002,14:45)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @ May 22 2002,15wow.gif)</td></tr><tr><td id="QUOTE">King Nothing or LauryThorn:

Is this what I think it is? Does this order a unit to move to player's position?<!--emo&confused.gif

I think waypoints cannot be placed at different elevations (2nd floor of building).

Can any of you tell me how units can kill civilians??? I have used DoFire and DoTarget to order enemy units to execute civilians (rescue the hostage mission), and the little bastards will not shoot the civilian. Of course if the hostage was a WEST or RESISTANCE there would be no problem.<span id='postcolor'>

Yep, the other command means that guy1 move to players position. Getpos script gets the x,y,z coordinates of the given target. getpos player gets the coordinates of the player for example.

You can get the civilians hostile to east by grouping it with a west unit and vice versa. Note that you can also make an east unit hostile to another east unit by grouping it with a west unit wink.gif.<span id='postcolor'>

Is that guy moving to me (player) whereever I am? Or only to the last known coordinates of me, when the line was activated?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (LauryThorn @ May 22 2002,16)</td></tr><tr><td id="QUOTE">Here is definition for guerilla soldier from mission.sqm:

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

class Item3

{

side="GUER";

class Vehicles

{

items=1;

class Item0

{

position[]={1307.143188,65.474998,5958.939941};

azimut=45.000000;

id=194;

side="GUER";

vehicle="Hunter";

leader=1;

rank="CORPORAL";

skill=0.200000;

text="man2";

markers[]={};

init="this setbehaviour ""CARELESS""; this switchmove ""EffectStandSitDown""";

};

};

};

<span id='postcolor'>

I haven't tried it, but I have read here that you can

manually change unit's side by editing the value of

SIDE to EAST or WEST or whatever..<span id='postcolor'>

You have, where? I can't do it. Sorry. But try it, it might work.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (FallenPaladin @ May 22 2002,16:16)</td></tr><tr><td id="QUOTE">Is that guy moving to me (player) whereever I am? Or only to the last known coordinates of me, when the line was activated?<span id='postcolor'>

last known position

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">last known position<span id='postcolor'>

What do you mean with "last known position"?

These are equal:

_player_pos = getpos player

guy domove _player_pos

and

guy domove getpos player

When you give that command, guy starts moving to

position where player is when that command is given.

If player moves when the guy is walking there, the

guy won't give a damn, he only wants to get that

position given to him..

Share this post


Link to post
Share on other sites

To make a unit move towards the player almost continually, you could place a bunch of triggers within a trigger so that every few feet/meters, the player's new coordinates are sent to that unit.

Also make the triggers to "repeat," and then you have it.

In theory, that should work. I may try it tonight when I get home.

In a mission I am making, the player is unarmed for 1 objective, and he is being chased/followed by an enemy unit that is also unarmed. Now if the enemy is armed and the waypoint is GUARD, then they will chase you. They will not chase you if they are unarmed. That's why I needed this script/command.

Share this post


Link to post
Share on other sites

KING:

When you say group the civilian to a WEST to make it hostile to EAST, do you mean pressing F2 and drawing a blue line from the civilian to the WEST unit or just giving them the same group name in the inti field of the highest ranking WEST unit (group this westunits) ?

If I want unitA and unitB to be on 2 sides of the large field and I hit F2 and draw a blue line to them linking or grouping them, they will not stay there when I preview the game. One of the 2 units will move near the other rather than stay across the field.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (LauryThorn @ May 22 2002,16:41)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">last known position<span id='postcolor'>

What do you mean with "last known position"?

These are equal:

_player_pos = getpos player  

guy domove _player_pos

and

guy domove getpos player

When you give that command, guy starts moving to

position where player is when that command is given.

If player moves when the guy is walking there, the

guy won't give a damn, he only wants to get that

position given to him..<span id='postcolor'>

Guy1 will move to the position where the player is for a single time. It doesn't start following the player. Test it yourself and you'll see...

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @ May 22 2002,17:25)</td></tr><tr><td id="QUOTE">KING:

When you say group the civilian to a WEST to make it hostile to EAST, do you mean pressing F2 and drawing a blue line from the civilian to the WEST unit or just giving them the same group name in the inti field of the highest ranking WEST unit (group this westunits) ?

If I want unitA and unitB to be on 2 sides of the large field and I hit F2 and draw a blue line to them linking or grouping them, they will not stay there when I preview the game. One of the 2 units will move near the other rather than stay across the field.<span id='postcolor'>

Yep I mean that blue line. And I have figured out that if you want the two units to be on the same group and want the to start from their given positions (in the editor), you must select the two units and press Cntrl C and then Cntrl V and the editor will copy paste the two units. The point is that for some reason the units now starts from their given positions and they are still in the same group. Hope this helps

Share this post


Link to post
Share on other sites

KING: I use that copy and past command all the time. The variable name changes but the variable name in the commands/scripts do not change.

Yes it helps. Here is a follow up question: after you copy and paste the units, then what? Do you delete the old units and only use the pasted units? You would have to delete one set of units right?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @ May 22 2002,19:38)</td></tr><tr><td id="QUOTE">KING: I use that copy and past command all the time. The variable name changes but the variable name in the commands/scripts do not change.

Yes it helps. Here is a follow up question: after you copy and paste the units, then what? Do you delete the old units and only use the pasted units? You would have to delete one set of units right?<span id='postcolor'>

Ofcourse.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">KING NOTHING SAYS: Yep I mean that blue line. And I have figured out that if you want the two units to be on the same group and want the to start from their given positions (in the editor), you must select the two units and press Cntrl C and then Cntrl V and the editor will copy paste the two units. The point is that for some reason the units now starts from their given positions and they are still in the same group. Hope this helps <span id='postcolor'>

KING: I tried the above, and it does not work. I can group civilians to the WEST player but when I preview the mission, the civilians are standing next to the player although I placed them far away.

I copied and pasted a new set as you described above. It made no difference. I think there is something I am not doing. I tried to group the units and then copy and paste them, and I tried to copy and paste them and then group them.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Tales_From_Topographic_Oceans @ May 23 2002,15:21)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">KING NOTHING SAYS: Yep I mean that blue line. And I have figured out that if you want the two units to be on the same group and want the to start from their given positions (in the editor), you must select the two units and press Cntrl C and then Cntrl V and the editor will copy paste the two units. The point is that for some reason the units now starts from their given positions and they are still in the same group. Hope this helps <span id='postcolor'>

KING: I tried the above, and it does not work. I can group civilians to the WEST player but when I preview the mission, the civilians are standing next to the player although I placed them far away.

I copied and pasted a new set as you described above. It made no difference. I think there is something I am not doing. I tried to group the units and then copy and paste them, and I tried to copy and paste them and then group them.<span id='postcolor'>

Well then I remembered wrong. I'll see if I could remember it somehow.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Guy1 will move to the position where the player is for a single time. It doesn't start following the player. Test it yourself and you'll see... <span id='postcolor'>

Of course. I just didn't get the "last known position" thing.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Guy1 will move to the position where the player is for a single time. It doesn't start following the player. Test it yourself and you'll see... <span id='postcolor'>

I set up about 50+ overlapping repeating triggers of all shapes and sizes to make several enemy units follow me around. Everytime I activated a trigger, my new x,y,z coordinates were transmitted to the following enemy units.

It works. The only thing is, is that I have 3 ungrouped enemy units. I have them placed at different locations. When they converge upon me, they will walk after me together as if they were group.

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  

×