Scripts / I lil help with respawning plz

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 11th Mar 2021 21:33
hi guys, i watched Lee's vid on respawning and started to put together a script to just basically respawn a critter after a said time so basically the player can stay on the map to hunt, i have this working for non critter entities e.g food, rocks etc etc. but for the characters long story short not happening :/ here's what i wrote can anyone see why it doesn't work? cheers guys.

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 11th Mar 2021 21:45
Two things:

1) What causes spawnmaker_cycle to become >= to g_Time + 1000?
2) Once a characters health drops below 0 the script is no longer called so it is unlikely that the <= 1 check will will ever get called.

What I do is set the health to some crazy high value, say 30000 + initial health or so, and then check if it falls below that value.

But I don't bother with the spawn, I just hide/unhide it as needed (plus move it around the map to suit the situation) also remember to use CollisionOff/CollisionOn as you don't want it getting in your way when hidden.
Been there, done that, got all the T-Shirts!
PM
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2021 13:12
Tbh m8 i was watching Lee's video on respawning which didn't work so started adding some conditions which "cough" didn't work :/
then came across Fumar's script below



which i cannot seem to get to work, I've also tried smallg's respawner script which also doesn't want to work for me? ....coffee time methinks.
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 12th Mar 2021 14:02
Sent you a friend request thingy on Discord.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-12-22 02:11:22
Your offset time is: 2024-12-22 02:11:22