Forums Gallery Downloads LOGIN |REGISTER

Trackview sequence and player spawn problem

Topics on creating any sort of animation or cinematic using Sandbox 2 should be posted inside this forum.


 

User avatar
ultranew_b
Producer
Producer
 
Posts: 1389
Member since: 04.04.2010, 18:17
Location: Canada Eh !
Likes: 21

Trackview sequence and player spawn problem

Postby ultranew_b » 09.08.2010, 04:38

Hey,

I set-up a nice lil train trackview sequence. When the level starts (cinematic plays on level load checked) the train will start its course and continuously loop. This all works great except when the player dies and respawns, the sequence stops working.

How can I set-up the sequence so that if the player dies, when he respawns, the train will always reset properly?
Image
-Andre-
Junior Dev
Junior Dev
 
Posts: 192
Member since: 14.02.2010, 19:48
Location: Good old Nowhere of Germany ^^
Likes: 0

Postby -Andre- » 09.08.2010, 15:38

you could use a logic:once node and connect it to the start of the sequence.if the player dies,just reset the logic:once node.
What is Green and smells like Blue Paint?

-Green Paint.
User avatar
ultranew_b
Producer
Producer
 
Posts: 1389
Member since: 04.04.2010, 18:17
Location: Canada Eh !
Likes: 21

Postby ultranew_b » 09.08.2010, 15:57

Cool, but how do u detect whether the player dies?

Is there a node for this?
Image
User avatar
andrey_filantrop
Producer
Producer
 
Posts: 2065
Member since: 25.01.2010, 15:54
Location: Moscow, Russia
Likes: 57

Postby andrey_filantrop » 09.08.2010, 16:50

FG node: Game/actorsensor/on death input (i've used it in my doorgunner saga) :)
But i think there is another way to make animation be continious:
You need to write FG sequence: start--->logic any---->play seguence---->previous logic any. If you only changed some parametres in animation itself without FG support, it may really fail on player's death :)
Last edited by andrey_filantrop on 09.08.2010, 16:55, edited 2 times in total.
Loving God gives you Happiness, Knowledge, Strength and Freedom.
AURAYAMA on Crydev & AURAYAMA in Russia :)
Portfolio: AndreyFilantrop on deviantART
Life by FlowGraph!
User avatar
ultranew_b
Producer
Producer
 
Posts: 1389
Member since: 04.04.2010, 18:17
Location: Canada Eh !
Likes: 21

Postby ultranew_b » 09.08.2010, 18:18

Originally posted by andrey_filantrop
You need to write FG sequence: start--->logic any---->play seguence---->previous logic any.


This works great, thank you !

:D
Image


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community