Change owner/force of objects
Posted: Sat Dec 29, 2018 2:52 am
Hey all!
I run an OARC server and once in a while it would be nice for the admin to be able to change the Force ("Main Force", etc.) of all of objects of a given force. The use case is when someone is banned, the admin can go in and change the force of all the objects that the banned player placed, making clean up easier, or to give that base to another player on another force.
Anyone know how to do this in LUA? For example, if the person who was banned was named "imatroll", and he had his own force (in OARC it would be "imatroll"), then loop through all objects and if they are owned by "imatroll" or belong to his force, change it to "Main Force".
Thoughts?
I run an OARC server and once in a while it would be nice for the admin to be able to change the Force ("Main Force", etc.) of all of objects of a given force. The use case is when someone is banned, the admin can go in and change the force of all the objects that the banned player placed, making clean up easier, or to give that base to another player on another force.
Anyone know how to do this in LUA? For example, if the person who was banned was named "imatroll", and he had his own force (in OARC it would be "imatroll"), then loop through all objects and if they are owned by "imatroll" or belong to his force, change it to "Main Force".
Thoughts?