- 0
Would A "Sleepers" Script Be Theoretically Possible?
-
Similar Content
-
- 201 replies
- 36833 views
-
- 0 answers
- 1044 views
-
- 1 answer
- 2042 views
-
- 1 answer
- 1159 views
-
- 1 answer
- 1002 views
-
- Advertisement
Question
DY357LX
DiSCLAIMER: No, I don't want this implemented by the devs or anything like that. I was simply thinking about it and how it would be implemented during my walk home.
Several popular survival games these days are setup so that when the player logs out, their character is left on the floor, asleep in their logout location.
Online players can stumble across these sleepers, steal their gear or flat-out kill them. It forces players to consider carefully where they're going to log-out.
So, the script would have to:
Get the player UID, skin, inventory content, position on the map etc and then create a "clone". Creating a new soldier/AI with those attributes wouldn't be too difficult but you'd have to find a way to stop it moving at all. Even rotating on the spot. I don't know if ArmA 2 + 3 contain a "sleep" animation. Maybe a dead body would work better but you'd have to make sure the database value doesn't change unless actually killed by another player.
As the sleeper player logs in, the script simply removes the AI with the variable name/value that matches the UID of the player so there's no conflicts and updates the players inventory to match that of the clone to prevent duping. If the player logging in has been killed whilst asleep, the script sets ALIVE to 0 in the database and a respawn is required.
Anyway, it was just an idea (with plenty of flaws) and I thought it might make for an interesting discussion. Not just for scripters, but for people who love/hate the sleeper mechanic.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now