Jump to content

houndfoxie25

Member
  • Posts

    2
  • Joined

  • Last visited

houndfoxie25's Achievements

  1. Hey all ! Just to inform you, I found a workaround, quite imperfect. But it seems the absence of Z when spawning is due to the game not spawning Z's in the starting building. And since the ENTIRE prison is considered the same building well... It's a bit of a shame... So my workaround would be to spawn the player in the prisoner yard. Could work, but it's still a far cry from what I wanted Can anyone tell me how to include a command to directly teleport the player at coordinates upon start please ? (and not spawn, the objective being that the player would spawn somewhere allowing Z to spawn in prison, then be teleported, all right at the start of the game). Thanks by advance !
  2. Hello ! I'm currently trying to integrate custom spawnpoints to my mod (that originally only contained a replacement for prisoner coveralls). So far, I managed to create a custom spawnpoint (in a random prison cell of the Rosewood penitenciary), modify the player's starting gear and erase from distribution prisoner coveralls to replace them by my new convict clothes ^^ However, every time my player spawns in the prison, the closest zombies spawn outside. maybe sometimes one or two inside but really nothing else... It makes it uninteresting since you have the whole penitenciary for yourself... The strangest thing is that if I spawn somewhere else and then teleport the player inside the prison, it's well populated and makes for a great challenge ! But not when the player spawns IN the prison, I have no idea why since other mods making the player spawn in the prison aren't affected by that problem. So I've tried to manually spawn zombies, taking inspiration from pillow's mod, but without succes : The function above is supposed to be called on a new player creation, but it never happens. I see three solutions to my problem : 1. Spawn the player at a random location and teleport him/her instantly in the prison when the game starts. 2. Manage to force the spawn of zombies (what I've tried, without success). 3. Resolve the problem that makes it so no zombies spawn when selecting my mod. But in all three cases, I've reached the end of my rope and I dunno how to do Any help is welcome, ofc if you have remarks on my code I'm open to suggestions !! ^^ (the file is included) Thank you very much all ! Prison_Cell_Spawn.lua
×
×
  • Create New...