Dabri
  • Dabri
  • 59% (Neutral)
  • Private Topic Starter
18 years ago
I Have a Skirmish map with Civilian infantry that follow a looping path, how can I make it in the scripts so those untis clear shroud for all the players?

Or a method of unshrouding certain waypoint spots would work for me also as long as all human players could see it.
Sponsor
Un_Nem
  • Un_Nem
  • 62.75% (Friendly)
  • Private
18 years ago
Try this:
1:
Image Insert:
UserPostedImage
43.5 KB
2:
Image Insert:
UserPostedImage
83.07 KB
😣
Me Myself and Pi
18 years ago
That technique will work for only single player maps. Not for multiplayer. You can only reveal stuff for the host of the game (If you use something like the spy drone, then his allies can see it to.) in a multiplayer map. But the only case where you can reveal certain area, or the whole map, is in an AOD map when all the players are on the same team.

In Generals (not Zero Hour) you can probably get the whole map to be revealed, but it doesn't work in Zero Hour. Let me know if you want instructions to do any of these techniques.
Dabri
  • Dabri
  • 59% (Neutral)
  • Private Topic Starter
18 years ago
I guess for the hosting player only would work, you said something about a spy drone showing for your allies, that should work perfectly for what im wanting.
Me Myself and Pi
18 years ago
Okay then.

1) Go to the Player List in the Edit menu & add a new player.
2) Choose FactionCivilian for the player & name the player & the team name whatever you want.
3) Close the Player List & open the script menu.
4) Create a new script in the PlyrCivilian folder & choose the action "Player\Set\Set player's money."
5) In the action, choose the player you just created & set the money value to 0. (You'll be transferring all of the player's stuff to the host of the game, including the money. Unless you'd rather have the player's money, use the action in step 4.)
6) Create a new action; "Player\Transfer\Transfer assets from one player to another player."
7) In the action, select the player that you created for the first "Player '???'" & choose "" for the second. ("" is the host of the game. Don't ask me why it works, it just does.)

All you have to do now is place the spy drones on the map & put them under the player you created & the host will own them! This also works for any other unit/structures in the game. If you put anything under that player, the host will own it!

If you're making an AOD map, there's an easy way to reveal the map for all the player in the game. Just create a script (make sure it's in the PlyrCivilian folder) the reveals the entire map for skirmish player (the skirmish player in the game required to make the AOD map run properly) in the game. This will reveal the map for the human players! Don't ask me why for this either. I got this idea from another map on the Internet!
Dabri
  • Dabri
  • 59% (Neutral)
  • Private Topic Starter
18 years ago
Alright I have the drones on the map and they transfer to the host (BTW on mine the host isn't it is dont know y that is). it shows for allies so that all works fine, but I tried setting them for a looping waypoint path and they just set there and circle. Can these units only move in circles or what? I already have units that follow the same path so i just added them to the same set of script actions to follow the waypoint, the other units follow it, they dont. do they not follow the scripts because they are transfered to a human player?
Me Myself and Pi
18 years ago
I know works. But if you try this map on multiplayer, it will cause a mismatch right away. It's because all the player in a multiplayer game are local players. I guess EA put on a safe gaurd on this player because if you tried transferring the player you created to all the players, it wouldn't know which would have its stuff. So it would just cause a mismatch. Using in any instance, will cause a mismatch, but only when the script you're using gets activated.

You can't transfer a unit to another player & tell it move somewhere at the same time, it just doesn't work. So have all you the actions that tell these units to move, after the slightest of time. So just create a script that sets a timer for .01 seconds, & then use a condition to activated the action when this timer expires. If the spy drone doesn't want to move after doing this, use the spy drone USA vehicles can build (scout drone).
Dabri
  • Dabri
  • 59% (Neutral)
  • Private Topic Starter
18 years ago
well then, doesn't work for me, I dont own them when i set it that way
Me Myself and Pi
18 years ago
Make sure it's in the PlyrCivilian folder. If it is, upload the map in a ZIP folder so that I can see what you're doing wrong.
Dabri
  • Dabri
  • 59% (Neutral)
  • Private Topic Starter
18 years ago
Ive got it now, it was in the civilian, I took it out of there and put it into the created teams folder and it works. ive been having alot of problems with my civ. scripts not working properly, need to find out why that is. thanks for the help though. seems like your a really helpful guy. I see you all over the forums here and quite few other c@c sites,
Spank you, Helpy Helperton.