View Single Post
Old 14-05-16, 12:52   #10
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 32,750
Default

EXAMPLE 8 - WATER TO LADDER
-------------------------------------------------------------------

This move allows Lara to grab and climb onto a ladder while she is swimming/floating on the water surface


Script command
Animation= 490, KEY1_ACTION + KEY1_UP, IGNORE, FAN_SET_LARA_PLACE+FAN_ALIGN_TO_ENV_POS, ENV_MULT_CONDITION, 8, PLACE_GROUND, -110, -116, -118
MultEnvCondition= 8, ENV_CLIMB_WALL_IN_FRONT, IGNORE, IGNORE, ENV_POS_HORTOGONAL + ENV_FLOATING, IGNORE, IGNORE, ENV_CONDITION_TRIGGER_GROUP, 9, IGNORE
Triggergroup= 9, $8000, 7, $110
MultEnvCondition= 7, ENV_DISTANCE_WEST_WALL, 102, IGNORE, ENV_DISTANCE_SOUTH_WALL, 102, IGNORE, ENV_DISTANCE_NORTH_WALL, 102, IGNORE, ENV_DISTANCE_EAST_WALL, 102, IGNORE


TriggerGroup 9 is the following exported condition trigger:
; Exporting: CONDITION(16:60) for PARAMETER(6)
; <#> : MultEnvCondition= 7
; <&> : Multiple condition of <#>MultEnvCondition script command in (E)way
; (E) : in OR way. (Just a single ENV condition is true)
; Values to add in script command: $8000, 7, $110



Settings for the animation
Animation 490:
StateID= 56
Next Anim= 491

Animation 491:
491 is a single frame animation with the one frame being a copy of the last frame of animation 490.
StateID= 56
Next Anim= 164

You can ofcourse change the animations slots to whatever slots you have avilable in your own LARA object.
It depends on the animation you use whether or not you need to add a Set Position to animation 491.
For some odd reason my animation has Set Position 0, 0, 0 assigned to it... which should not make any difference since it does not move Lara. Well, no idea but I decided to put it in the tutiorial anyway in case someone has problems with the transition to the actual ladder animation.



Screenshot
An example of a water-to-ladder animation.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.

Last edited by Titak; 25-08-19 at 21:30.
Titak is offline