Posted by: t1a2l - Tuesday, December 16, 2014 10:25:14 AM
i created a new player, in this player i created a team.
the team have 3 cars in it, but when i order the team to follow a waypoint by script - nothing happens!
to be clear the team was created in the "edit teams" under the player i created.
please help me.
Posted by: Gameanater - Tuesday, December 16, 2014 7:56:50 PM
Well, I figure you've already done this, but you have to make sure the units you want to move are IN the new team... [stuck_out_tongue]
The only alternative I can think of is that you could try giving each unit you want to move a unique name (dude1, dude2, dude3, etc), and move them using another script.
I'd have to look at the map itself to really see, though. I have no idea what would cause this problem based on what you've described.
Posted by: zero hour mad map maker - Wednesday, December 17, 2014 5:17:15 PM
Could this help?
http://www.cnclabs.com/forums/cnc_postst12643_Tutorial--How-to-make-a-Unit-move-and-a-Team--Small--but-POWERFUL.aspx
Posted by: t1a2l - Wednesday, December 17, 2014 5:23:27 PM
it dosnt work properly, also i am looking for somthing like:
first car follow way point, 2nd car follow first car, 3nd car follow 2nd car, etc...
Posted by: zero hour mad map maker - Wednesday, December 17, 2014 5:40:15 PM
[quote=t1a2l;135169]it dosnt work properly, also i am looking for somthing like:
first car follow way point, 2nd car follow first car, 3nd car follow 2nd car, etc...[/quote]
There is no such script as that, if you want them to follow 1 right after the other you will have to set timers and make each car move individually.
Timer start
*** IF ***
True.
*** THEN ***
Set timer 'car move' to expire in 10.00 seconds.
car 1 move
*** IF ***
Timer 'car move' has expired.
*** THEN ***
Unit 'car1' EXACTLY follows waypoints, beginning at Waypoint Path 'car path'
Set timer 'car move' to expire in 3.00 seconds.
Enable Script 'car 2 move '.
car 2 move (Script not active)
*** IF ***
Timer 'car move' has expired.
*** THEN ***
Unit 'car2' EXACTLY follows waypoints, beginning at Waypoint Path 'car path'
Set timer 'car move' to expire in 3.00 seconds.
etc. does that work?
If not make sure the car(s) TEAM and PLAYER match the folder you are scripting in.
Posted by: t1a2l - Wednesday, December 17, 2014 5:53:26 PM
i will try that thanks...
what about map.ini scripting in the way i suggested?
Posted by: Gameanater - Wednesday, December 17, 2014 6:42:14 PM
I'm almost certain that you can't do that kind of thing in a map.ini...