Jump to content
Sign in to follow this  
Reapy

How to use "synchronizeWaypoint trigger" command ?

Recommended Posts

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 sad_o.gif

Anyone can help me plz ?

Share this post


Link to post
Share on other sites

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

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 smile_o.gif Knowing Reaper, WP/Trigger synch through editor is nothing new to him wink_o.gif

Share this post


Link to post
Share on other sites

Exactly Whisper wink_o.gif

I try with [TriggerName] but with no success sad_o.gif

Share this post


Link to post
Share on other sites

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

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

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 smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×