New Commands: 2050 - Call Movement Action#3111
Conversation
feeed6f to
b58c8af
Compare
248a21f to
e5c2381
Compare
|
This one is near completion. Once Ghabry have time, he will help refactoring the vehicles code, to allow any event entities to fly or land like airships. I wonder if we could also have an extra parameter called |
e5c2381 to
1d9597e
Compare
1d9597e to
ee8b2ad
Compare
|
About the semantics of Wait for Single Movement: I understand this ones:
But about the output variable: The variable is set to 0 when the move route was aborted. The variable is set to 1 when the move route did not exist or ended successfully. Is this correct and the intention? |
`@raw 2050, "SetMoveSpeed", 0, 10001, 1, 3` @2050("typeOfAction",[targetIsVar,target, parameterIsvar, parameter]) ```js @raw 2051, "", 0, 10001 //Wait for Single Movement @raw 20140, "Fails to move x times", 8 // start fail branch @raw 10 //empty space for more cmds @raw 20141 // end of fail branch ```
```js @raw 2050, "FaceTowards", eventAIsVar,eventA, eventBisVar, eventB ``` ```js @raw 2050, "FaceAway", eventAIsVar,eventA, eventBisVar, eventB ```
ee8b2ad to
875e012
Compare
|
Small draft proposal for providing extended functionality of "StopMovement" with a new command: Minimum parameter size: 3
Side note: |
|
@florianessl I like this idea a lot! Maybe extending it a bit more with On other subject, We just discovered that this command I made is a bit similar to Maniacs "Add Move Route", with 2 differences:
|
|
Yeah I was thinking about this PR here again after seeing "Add Move Route" and imo this command is quite bad. Especially the requirement to have an existing move route (would be also more useful if it would create a new route instead of silently failing). At least everything that finishes immediately is imo for this command here. Stuff that takes longer to execute needs testing (or is better suited in a move route). |
Here's a bunch of stuff that was already requested in different places.
Call Movement Action:
A collection of new move commands that can be called as:
Wait for Single Movement:
Waits for the end of a Single Event's Movements.Already Implement on another PR.
Details
```js @raw 2051, "WaitForMovement", 0, 10001, 0, 35, 0, 8 ```While waiting for the Move Route to complete, you can save the outcome of the motion (success or failure) to a targetVariable. Additionally, you can set the number of failed attempts allowed before triggering a failure condition. If the failuresAmount is set to 0, this command will simply wait for the motion to finish without considering failures.
old commits comments:
Update Feature - Support Detecting when Move Route Fails Thanks @MackValentine Mack for solving some Core Issues