I Am making a RPG and i have added a unit respawn system But when a unit dies it respawns where the corpse was left off at how can i make it so it spawns at its Original Starting Point and by orginal point i mean where i put the monster in the editor
the thing you do is to revive the dead so they revive to the point they where killed.You have to "save" the position of every unit you have, (except heroes ofc)
There is a system around here that will help you very much.
If are good enought to understand me the prob is solved.
You have to take all units (for the rpg) excluding buildings and heroes.
You have to set their custom value from 1 and increasing 1 for every unit, (if you have 5 units it you will set custom value of first 1 of second 2 and so on until 5)
Now create a real valiable with arrays and use the custom values you set to the points array ( so for unit with custom value 1 there is a UnitPointX[1] and UnitPointY[1] that defines the units position)
All you have to do for not making 10-8200 actions, use loops.....
And when it dies check his cutom value after some seconds make it spawn at its UnitPointX[z] and UnitPointY[z] (z=custom value of unit)
Player Group - Add Player 9 (Gray) to Creep_Respawn_player_group
Player Group - Add Player 10 (Light Blue) to Creep_Respawn_player_group
Player Group - Pick every player in Creep_Respawn_player_group and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
Loop - Actions
Set Creep_respawn_Number_int = (Creep_respawn_Number_int + 1)
Unit - Set the custom value of (Picked unit) to Creep_respawn_Number_int
Set CreepRespawnPoint[(Custom value of (Picked unit))] = (Position of (Picked unit))
Trigger:
C H Respawn Creep advan
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Dying unit)) Equal to Player 12 (Brown)
(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
(Owner of (Dying unit)) Equal to Player 9 (Gray)
Actions
Wait 80.00 seconds
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at CreepRespawnPoint[(Custom value of (Dying unit))] facing Default building facing degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
THis adds the players to a group... (which i should delete :/) then takes all there units sets the custom value to preivuos unit +1 and sets its "point" as the location [custom value of picked unit]
the respawn re-makes the dead unit(agian need 2 fix) at there point [custom value of dying unit]
then sets its value to the old units value
what i want to know is why use point offset by x y when you can use JUST point?
why spend extra time saving the x/y postion when you can just save its point?
Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
@tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart