[Python Information Request] Object Spawning Question..
Posted: 2011-04-16 14:14
Hey guys, im one of the developers over at the SG4BF2 mod.
As some of you may know we have out own kit & Object request & spawning system that is very simaler to PR's
We are looking for information on how PR performs the act of "shoveling or building" an asset that has been deployed for example the FOB from its initial spawned state (construction material) to its final stage (built structure) as we are looking in to the possibility of adding a simmaler system to ours were the teams would be able to build some form of defensive barriar (possibly sandbags) to help defend their positions.
PR Example:
When a FOB is requested and spawned in to the world it is initially displayed as construction material, when a player or players start to shovle and build up the object it switches its apperance to show the final built structure.
Firstly i would like to ask is this accomplished by switching what geometory is being displayed on the objectm if so is this controlled by python.
e.g
Geometory 0: construction stage of the model
Geometory 1: Final built stage of the model
Secondly if the answer to question 1 is yes then is the switching of the geometory's controlled via pythonn based on the objects current health
e.g
when the object is first spawned it has say 10% health
between 10% -49% stage 1 is shown (Construction material)
Between 50% - 100% Stage 2 is shown (Final built stage of the model)
and thirdly how exactly can this be done via python.
Just the command to switch an objects geometory is all i would need if that is how this rocess is performed.
Please feel free to ask any other questions or ask for more information if needed.
Thank you
Kind Regards
TA AKA [SG4BF2 Developer] Rodney McKay
As some of you may know we have out own kit & Object request & spawning system that is very simaler to PR's
We are looking for information on how PR performs the act of "shoveling or building" an asset that has been deployed for example the FOB from its initial spawned state (construction material) to its final stage (built structure) as we are looking in to the possibility of adding a simmaler system to ours were the teams would be able to build some form of defensive barriar (possibly sandbags) to help defend their positions.
PR Example:
When a FOB is requested and spawned in to the world it is initially displayed as construction material, when a player or players start to shovle and build up the object it switches its apperance to show the final built structure.
Firstly i would like to ask is this accomplished by switching what geometory is being displayed on the objectm if so is this controlled by python.
e.g
Geometory 0: construction stage of the model
Geometory 1: Final built stage of the model
Secondly if the answer to question 1 is yes then is the switching of the geometory's controlled via pythonn based on the objects current health
e.g
when the object is first spawned it has say 10% health
between 10% -49% stage 1 is shown (Construction material)
Between 50% - 100% Stage 2 is shown (Final built stage of the model)
and thirdly how exactly can this be done via python.
Just the command to switch an objects geometory is all i would need if that is how this rocess is performed.
Please feel free to ask any other questions or ask for more information if needed.
Thank you
Kind Regards
TA AKA [SG4BF2 Developer] Rodney McKay