11.06.2017, 00:18
I'm making a lot&house system in my gamemode. This would include both removing and creating objects.
The question is: how shall I execute them?
My thoughts are removing objects under OnPlayerConnect, and creating objects (houses) with commands.
After a server restart would RemoveBuildingForPlayer actually remove a created house too if it's modelid is the same as the previously deleted one? And would the server crash because of it?
I haven't really started the code so I cannot show it to you. I'm asking because I don't want to struggle with making it and then fail, so my question would appear here anyway.
Would a HouseCreated[houseid] variable solve this problem if it exists? And should I and can I even make a stock function to remove objects?
The question is: how shall I execute them?
My thoughts are removing objects under OnPlayerConnect, and creating objects (houses) with commands.
After a server restart would RemoveBuildingForPlayer actually remove a created house too if it's modelid is the same as the previously deleted one? And would the server crash because of it?
I haven't really started the code so I cannot show it to you. I'm asking because I don't want to struggle with making it and then fail, so my question would appear here anyway.
Would a HouseCreated[houseid] variable solve this problem if it exists? And should I and can I even make a stock function to remove objects?