Reapy 0 Posted June 12, 2007 Hello, I don't find how to synchronize a trigger with a waypoint's group using the "synchronizeWaypoint trigger" command. The explanation in the wiki is the same for the "synchronizeWaypoint" command and I don't know where I can specify the name of my trigger. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Name: synchronizeWaypoint trigger Description: Synchronizes the waypoint with other waypoints. Each waypoint is given as an array [group, index]. Syntax: waypoint synchronizeWaypoint [waypoint1, waypoint2, ...] Parameters: waypoint: Array [waypoint1, waypoint2, ...]: Array Return Value: Nothing Example 1: [group1, 2] synchronizeWaypoint [ [group2, 3] ] I try many test with no success Anyone can help me plz ? Share this post Link to post Share on other sites
Balschoiw 0 Posted June 13, 2007 place a trigger on your map, select whatever activation you want, create a group, make some waypoints for them and use the sync command from right level selector menu , and draw a line between the trigger and the waypoint before the last waypoint of your group. Once the triger is fired the group will move on to their last waypoint. You can connect unlimited amount of synchs to trigger. Share this post Link to post Share on other sites
whisper 0 Posted June 13, 2007 Something wrong in the Biki here, the description is the one for 2 WPs synchronization. I guess you could try this :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[group1, 0] synchronizeWaypoints [triggerName]?? Edit : Balshoiw, I think he is specifically trying to use the script command Knowing Reaper, WP/Trigger synch through editor is nothing new to him Share this post Link to post Share on other sites
Reapy 0 Posted June 13, 2007 Exactly Whisper I try with [TriggerName] but with no success Share this post Link to post Share on other sites
whisper 0 Posted June 13, 2007 and without the [...]? : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[group1, 0] synchronizeWaypoints triggerName (and all variations with triggerName as left-hand parameter and waypoint(s) as right-ones). Do you get an error message when using the above syntaxes? If you get some, then they may hint at was is needed ("Expected "Array", recieved "Object"", or things like that) Share this post Link to post Share on other sites
fasad 1 Posted June 13, 2007 this works for me: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">triggerName syncronizeWaypoint [[groupName,waypointNumber],...] If somebody can confirm, I'll put it in the Wiki. Share this post Link to post Share on other sites
Reapy 0 Posted June 13, 2007 Fasad right ! This command line work perfectly: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> TriggerName synchronizeWaypoint [[GroupName,WaypointNumber]]; Thanks all for the help Share this post Link to post Share on other sites