PDA

View Full Version : Have specific problems; need specific solutions!


yuray
03-06-2008, 06:01 PM
Hi all, long LONG time CnC fan, first time poster.
I have Generals without Zero Hour and am making a single player map.
I have two problems:

Problem1) The team that I have paradropping in at the beginning of the mission won't attack the buildings I want it to after they land, they just sit there.
Script 1
IF true,
THAN Spawn an instance of Team 'Paradrop1' at waypoint 'LZ 1'

Script 2
IF team 'Paradrop 1' all enter area 'Water Grid' (I also tried making an area around where they landed and putting that) (Surfaces allowed: Ground)
THAN Team 'Paradrop 1' change their attitude to Agressive
and
Team 'Paradrop 1' attack anything in area 'Base'


Problem2) Even when I have units sitting in the two trigger areas, this script doesn't execute.
When one unit from team 'teamplayer' (that's the human player) enters area 'area1'
AND One unit from team 'teamplayer' enters area 'area2'
THAN
Show military briefing string "bla bla bla"
The map is revealed at Waypoint 'Secret base' with a radius of 75 ft for player 'player'
team 'hunters' begin hunting

Thanks a ton in advance!

Me Myself & Pi
03-06-2008, 09:04 PM
1) Make sure the team that para-troops in is an enemy to the units that are already there. You can do this in the Player List. The action you used only refers to attacking whatever enemies are in an area.

2) Could you upload your script for this? You can do this by selecting the script, then clicking on Export Script(s)... Uncheck all the items in reference the script & press enter. Save it where you want & put it into a ZIP folder. Now just upload that ZIP folder in a reply.

yuray
03-06-2008, 09:52 PM
1. Yes, the paratroopers are on a different team from the people in the target area. The PTs do attack them, but only if they get close enough (like within 10 feet, definitely not Agressive) so the entire script isn't working. They do land, but don't become aggressive or move into the target area.
And even though they are on opposite teams, they don't attack the buildings in the target area. (might be b/c the buildings are Civilian (not team, but from that list))

2.I think I attached it; I'm not sure if I did it right.

Thanks for the quick response and I hope it's not just my versions of Gen and WB that's screwing up.

Me Myself & Pi
03-07-2008, 02:19 PM
1) I think if you change the status of a team/unit, they stop performing any action their doing & won't perform an action in the same script. So try deleting the aggressiveness script. If you tell them to attack anything in an area, they'll probably be aggressive enough. Either that or could just set a time to expire in .01 seconds & when that does, have the team attack anything in the area.

2) The script looks like it should work, but I noticed you have an *** Or *** in it. Try deleting that & see if that works. If not, try putting in an an area devoted for this script & not just use two. I think I've also had trouble using two area conditions in a singe scripts.

yuray
03-07-2008, 05:45 PM
Thanks, the paratroopers don't attack still, but that's ok, they still land and shoot everybody.
And I made the two areas just one; When you get to the first area, you get a vehicle, allowing you to destroy the fence and enter the area which triggers the next objective.