Standby Time for Respawn

This is possible?

I want to add respawn time for my game.

Respawn NPC (when it dies)?

Every NPC have a Spawn Time in the NPC Editor

No.

When players die.

Example: When my character dies, i need to wait x minutes/seconds for respawn.

Sorry, my English is bad.

I’m pretty sure it’s possible. Contact a developer or research in the forum.

I wouldn’t know though.

No.

When players die.

Example: When my character dies, i need to wait x minutes/seconds for respawn.

Sorry, my English is bad.

  1. Comment out the stuff about respawning in the OnDeath sub.
  2. Create a packet that sends that they died.
  3. Create a timer that counts down from x seconds.
  4. If the timer = 0 then send a packet that will cause the player to respawn.

Just add a timer that activates when they die in the game loop then only send the re-spawn command once the timer is up. Simples.

Nice timing guys ;) Posted it at virtually the same time ;)

Thanks guys. I’m gonna try.

sec i try it

ok so just in Client side

find

Public Enum ServerPackets

below add


hospitalEnter

it works for me

Works for me too with that fix.

Thanks Zopto. :)

Np!

How can i combine frmMain and frmHospital?

You just cut and paste the controls on the frm

Why do you need to combine them?

Because

When I try move in the game, frmhospital timer is resetting.

Sorry for my English. :)

I dont understand? FrmHospital is always showing you mean? send it to back?

“FrmHospital is always showing you mean?”

No.

When I click anywhere, frmHospital is disappearing.

I want to combine both form because

frmMain Properties;

Moveable = True

but

frmHospital Properties;

Moveable = False

When I change the position of the main screen, frmHospital don’t change with main screen.

:)

Makes its positition centre to window, there is an option for it in the properties

Log in to reply