Aller au contenu

Photo

Moving objects to a location instantly


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Kilrogg_

Kilrogg_
  • Members
  • 296 messages
I have an NPC that dies/gets wounded in a cutscene, after which the game transitions to a fight (in gameplay), and after the fight I trigger another cutscene where the player talks with the wounded NPC.

When the cutscene is over, the NPC is where he started, not where he got wounded in the cutscene (which I guess is normal?).

How do I move him to the spot where I want him to lie down wounded?

Can I make him stay where he gets wounded in the cutscene, or what about a teleport script? I only found 'move' scripts that don't work on dead NPCs.

I know I could just deactivate the NPC and activate a 'dead' version of him already placed where I want but it seems like just moving the corpse would be more elegant.

Modifié par Kilrogg_, 01 août 2010 - 01:19 .


#2
Karma

Karma
  • Members
  • 391 messages
I've used Rubber_SetHome and Rubber_JumpHome on an NPC, but the NPC wasn't a corpse.

Modifié par satans_karma, 01 août 2010 - 03:15 .


#3
Kilrogg_

Kilrogg_
  • Members
  • 296 messages
Thanks.



I ended up just making a dead version of him anyway and going that route anyway :P

#4
Phaenan

Phaenan
  • Members
  • 315 messages

Kilrogg_ wrote...
Can I make him stay where he gets wounded in the cutscene, or what about a teleport script? I only found 'move' scripts that don't work on dead NPCs.


Apparently you went around the issue, but I guess SetLocation() would work just fine no matter what's the object type. If the ambient system is involved and previous roaming applies, UT_LocalJump() may be a good one as well.