Respawn on Saved Position Code?
-
TheHiddenHour it works but when i try binding it it says it is bad
buttonMonitorsaveandlaod() { self endon("disconnect"); for(;;) { if(self getStance() == "crouch" && self actionslottwobuttonpressed()) self saveLocation(); wait .05; } } -
TheHiddenHour how am i going to bind it
-
TheHiddenHour how am i going to bind it
Duui YT I mean, what you've got already looks like it should work.
-
TheHiddenHour how am i going to bind it
Duui YT simple. 2 lines in onPlayerSpawned.
Onplayerspawn, put this:
if (isDefined(self.a) && isDefined(self.o)) { self setplayerangles(self.a); self setorigin(self.o); }This will respawn you on your saved position if its set. Keep the original save and load code too.
-
Duui YT simple. 2 lines in onPlayerSpawned.
Onplayerspawn, put this:
if (isDefined(self.a) && isDefined(self.o)) { self setplayerangles(self.a); self setorigin(self.o); }This will respawn you on your saved position if its set. Keep the original save and load code too.
mikey where i put this scripte which folder and type
-
Duui YT Did you add the rest to
onPlayerSpawned()?TheHiddenHour How did u name it in .gsc
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login