05.09.2011, 07:15
Problem) Library array of objects ... since your talking about an include or plugin, you either have to double the existing library ( which is kind of redundant ), or hooking into the existing library ( Again redundant because you could simply just reassemble the existing streamers and add the option ). So, in a nut shell, unless your actually adding the function on one of the existing countless streamers, the 'solution' is excessive.
Since 'spectating' is a native, your really not creating something 'new' .... thus, you REALLY dont need a plugin or include. Simply modify the spectate function to obtain the object pos, set the player to spectate, and place the camera to point at the defined object.
now, if the object is a 'moving' object ... you now have to change camera positions based on a ticker, or timer. which again, isn't a 'new' concept, just a re-write of existing formulas, to reset and repoint the cameras based on motion.
Ultimate recap: Its best as a 'useful function' then an include or plugin.
Since 'spectating' is a native, your really not creating something 'new' .... thus, you REALLY dont need a plugin or include. Simply modify the spectate function to obtain the object pos, set the player to spectate, and place the camera to point at the defined object.
now, if the object is a 'moving' object ... you now have to change camera positions based on a ticker, or timer. which again, isn't a 'new' concept, just a re-write of existing formulas, to reset and repoint the cameras based on motion.
Ultimate recap: Its best as a 'useful function' then an include or plugin.