More thoughts...
Currently we have a giveweapontoplayer function...
I think we need a sort of middleware function that deals with all objects so we have a
giveobjecttoplayer([objectno],[player])
This function will deal with if it's ammo, clips, credits etc, this way we don't need a special script for credits, keys etc they are all handled by the giveobjecttoplayer function therefore much easier to deal with. So to pick up ANYTHING be it credits keys weapons you would just have a script "giveobjecttoplayer(me,player):removeme()"
Thoughts?
Currently we have a giveweapontoplayer function...
I think we need a sort of middleware function that deals with all objects so we have a
giveobjecttoplayer([objectno],[player])
This function will deal with if it's ammo, clips, credits etc, this way we don't need a special script for credits, keys etc they are all handled by the giveobjecttoplayer function therefore much easier to deal with. So to pick up ANYTHING be it credits keys weapons you would just have a script "giveobjecttoplayer(me,player):removeme()"
Thoughts?