Announcement

Collapse
No announcement yet.

Ask about player lives/respawn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    I'm pulling up again this post, because it doesn't seem to work for me, or I don't understand the thing.

    Ok, in my CustomGame class, I've injected this code:
    Code:
    DefaultMaxLives=1
    I complile and test the game In Editor mode, ok, it works.
    Now I play again the game, but this time "On PC" mode, and bam, it does not work, I can respawn the player by clicking the fire button...

    How could I say to the player "Hey, if you die, don't bother me, sleep a little until the player clicks on Play again on the Death Screen"?
    Thanks.



    Cheers.

    Leave a comment:


  • replied
    no prob. .

    Leave a comment:


  • replied
    thanks that really helped!

    Leave a comment:


  • Guest's Avatar
    Guest replied
    That's a nice one, I was interested by the same thing.
    Thanks mate!

    Leave a comment:


  • replied
    put the following line in the defaultproperties block of your game code.

    defaultmaxlives=1

    or if you prefer kismet



    and put start UDKFrontEndMap in the console command.

    of coarse,instead of opening the main menu with the console command you could do any kind of end sequence.

    Leave a comment:


  • started a topic Ask about player lives/respawn

    Ask about player lives/respawn

    Hi! right to the point i wanna ask how can we set up the player lives? (not health)
    i wanna set up the player just have 1 lives so when he died he can't respawn.
    i already tried with toggle cinematic mode and disable input when player died, but when i click left/right mouse he still respawned..
    please help! your answer is really appreciated! thx!
Working...
X