:
Destination Time
:
Present Time
:
Last Time Departed
Sign in to follow this  
TheCoolest2

Help, with changing building code

Recommended Posts

Ok so, I'm trying to make a changing building code for the 1955 add on mod and so i put this start of the thread like fore the other buildings in the game

its not one of the create_threads


:TIME_19551

if 

   not $YEAR >= 1955 // integer values

else_jump @TIME_19553 

Model.Load(#const_woodfence30)

038B: load_requested_models 

When I put it below the other teams changing codes it mixes in with the teams code like this

:TIME_18014

if 

  $MODE == 0 // integer values 

else_jump @TIME_18382 

if 

   not $YEAR >= 1955 // integer values 

else_jump @TIME_18085 

Model.Load(#CONST_WOODFENCE30)

038B: load_requested_models

Where it says if it mixes with my code, why doesnt the code work, my other codes work, but never mixed, will it work if i moved to a random place or will it like mix with another code please help, thanks ;)

Share this post


Link to post
Share on other sites

Please Help!

Share this post


Link to post
Share on other sites

100% WRONG!!! you are only loading the model.

to replace a model, first you must have a model that is being replace.

Lets say the court house:

I'll generate random coords right now:

the court house is at 0,0,0. to replace it with that CONST_WOODFENCE30 you need the replace_model opcode:

03B6: replace_model_at 117.991 -362.461 10.179 radius 80.0 from #BLDNGST2MESH to #BLDNGST2MESHDAM
replace the coordinates with 0 0 0 and the models with the appropriate models in the correct spot:
03B6: replace_model_at 0 0 0 radius 80.0 from #courthouse to #CONST_WOODFENCE30
to revert back to the court house just reverse the models:
03B6: replace_model_at 0 0 0 radius 80.0 from #CONST_WOODFENCE30 to #courthouse

Share this post


Link to post
Share on other sites

I only showed the top of the code cus i dont want to show anyone the whole code, for its a surprise with the mod, unless you search the model and see what it is, i know to put coords and everything :P, Im saying that my code morphs with the teams codes, i didnt make the teams codes have threads to jump to mine, it does it automatically for some reason, i checked, would it still work if i moved it some where else?

If you dont believe heres a vid of doing the code last time and it didnt morph when i put it in, (this was my first code testing a few months ago)

Edited by TheCoolest2

Share this post


Link to post
Share on other sites

Why would I need to do that? My other codes worked?

Share this post


Link to post
Share on other sites
Sign in to follow this