www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Next Generation Level Editor (https://www.tombraiderforums.com/forumdisplay.php?f=40)
-   -   Falling Rope or Polerope (https://www.tombraiderforums.com/showthread.php?t=225685)

Richard_trle 09-02-21 02:32

Falling Rope or Polerope
 
Is there a way to implement a falling polerope or rope that, for example, when Lara climbs it, she grasp for awhile, but eventually both her and the rope/polerope falls down?

adngel 09-02-21 02:47

I have not try to make something like that, but I am theorizing that yes, it's possible with the NGLE

That action would need 3 commands.

1- A flipeffect to force an animation on Lara, it may be possible to force her into the falling animation (330 POLE_FALL).

The poleorope could be separated in two objects, the actual polerope (invisible, mesh) and an animating (the rope itself),

2- So another command should activate the animating to show the rope falling

3- And the real polerope should move away (maybe move it under ground) to ensure Lara can't keep using it anymore. There is another ActionNG able to move the entity up or down.

So that would be the action, but the how or when you call it... żafter X time?, you could use a simple rollingball and activate those 3 triggers on it.

Or you could combine them in the script as a TriggerGroup and activate them with an Organizer.

Richard_trle 09-02-21 03:04

I'm sorry, I'm dumb

What is an organizer?

Is there a way to trigger something without putting triggers on the editor? Or do you mean Flipeffect execute TriggerGroup?

adngel 09-02-21 03:19

Yeap.

You can put those 3 triggers on a same sector, make them heavy and activate them with a Rollingball.

But you can also put them in a script and activate them "out of the editor".

When you put a trigger in the editor, in the window appears a weird serial number like:

$2000,80,$004A

If you paste that code in the script after the word TriggerGroup=

For example, I make a trigger in the editor, a Trigger, Flipeffect 80, (activate animation on Lara) and I choose the animation 330, it shows the next ID: $2000,80,$004A

So in the script, I put the next:

TriggerGroup= 8, $2000,80,$004A

(the 8 is an ID for the trigger, there can't be 2 TriggerGroups with the same ID in the same Level).

Then you can use that flipeffect to perform the TriggerGroup (number 8 in this case).

That's the same that if you put the flipeffect for Lara animation directly. The strong point is that with TriggerGroup, you can put multiples triggers in the same line, and activate them with more complex mechanisms.

But for the falling rope, I think is not needed to dig much more over there @_@



On another note, the Organizer, is another "object" like the triggerGroups, you can put the script, it's like a clock, yo activate it in the editor (there is a flipeffect to activate the organizer) and then it start to count, you can set a number of triggers to be activated at X time:

Example:
Organizer= 3, FO_TICK_TIME, IGNORE, 0, 24, 210, 25, 60, 26

When the editor activates the Organizer 3, it will count every frame, (each second are 30 frames), so,
- in the frame 0 it will activate the trigger 24
- After 210 frames, it will activate the trigger 25
- After other 60 frames, it will activate the trigger 26.
Etc...
(remember to stop the organizer when you don't need it, there is another trigger for that).


So, It's another NGLE temporizer.



/----------------------------------------------------------/Edit

Oh, I noticed I forgot the condition. (otherwise the trigger would activate for Lara just be in the sector), there is also a trigger ConditionNg that can check if Lara is doing X animation or in X state ID, you can put it in the sector of the poleorope before to see if activate the Rollingball or not.

(another easier is the condition of the height, understanding that Lara can only reach X height if she is in the polerope, but well... choices, choices, choies...)

Richard_trle 10-02-21 10:32

I have managed to do it, I have also made a setup where Lara falls from the polerope, simply when there is no actual pole rope to start with :jmp:

Thank you very much adngel!


All times are GMT. The time now is 03:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.