Bon
Jun 5 2009, 01:32
Hi mates,
have two small problems, and I really hope u could help me out.
1. synchronizing Waypoints dynamically in scripts doesn't seem to work. I'm generating some units, soldiers as well as crewmen and cars, place the crewmen to vehicle operating positions and the soldiers to cargo. Crewmen and soldiers are both in different groups.
Now I add some waypoints both to the crew of the cars (waypointtype "TR UNLOAD") and the soldiers (waypointtype "GETOUT"). Here's the code I'm generating the waypoints with:
WPGrp1_1 = GroupSoldiers addWaypoint [_target,0];
WPGrp1 setWaypointType "GETOUT";
WPGrp1 setWaypointSpeed "FULL";
WPCars1 = GroupCars addWaypoint [_target,0];
WPCars1 setWaypointType "TR UNLOAD";
WPCars1 setWaypointSpeed "FULL";
Well, without placing the soldiers to cargo, both the groups move to their destination. Placing the soldiers to cargo and adding the following line:
[GroupCars,0] synchronizeWaypoint [[GroupSoldiers,0]];
in purpose to release the soldiers from Cargo when arriving at the waypoint location, nothing happens, the soldiers stay in the cars.
Second Problem:
I want to dynamically synchronize players with module logics, especially the Construction Manager Module. So placing such module in the editor (lets give it the name "COIN") and calling a script containig the line
player synchronizeObjectsAdd [COIN]
the list of synchronized objects of the player contains COIN, but I still cannot open the Constuction Manager via action menu.
Any suggestions? Thx alot.
have two small problems, and I really hope u could help me out.
1. synchronizing Waypoints dynamically in scripts doesn't seem to work. I'm generating some units, soldiers as well as crewmen and cars, place the crewmen to vehicle operating positions and the soldiers to cargo. Crewmen and soldiers are both in different groups.
Now I add some waypoints both to the crew of the cars (waypointtype "TR UNLOAD") and the soldiers (waypointtype "GETOUT"). Here's the code I'm generating the waypoints with:
WPGrp1_1 = GroupSoldiers addWaypoint [_target,0];
WPGrp1 setWaypointType "GETOUT";
WPGrp1 setWaypointSpeed "FULL";
WPCars1 = GroupCars addWaypoint [_target,0];
WPCars1 setWaypointType "TR UNLOAD";
WPCars1 setWaypointSpeed "FULL";
Well, without placing the soldiers to cargo, both the groups move to their destination. Placing the soldiers to cargo and adding the following line:
[GroupCars,0] synchronizeWaypoint [[GroupSoldiers,0]];
in purpose to release the soldiers from Cargo when arriving at the waypoint location, nothing happens, the soldiers stay in the cars.
Second Problem:
I want to dynamically synchronize players with module logics, especially the Construction Manager Module. So placing such module in the editor (lets give it the name "COIN") and calling a script containig the line
player synchronizeObjectsAdd [COIN]
the list of synchronized objects of the player contains COIN, but I still cannot open the Constuction Manager via action menu.
Any suggestions? Thx alot.