trigger / modelchange


(Zer0Cool) #1

Hi,

I want to build a model that changes to another model when i walk through an certain area. It should be that long the other model till i leave the area, then it shall be the old model again. anyone an idea?

Zer0


(-SSF-Sage) #2

Script_mover (set the first model here) and use script command

changemodel path/ 

to change the model when you want it. Put this into script_movers script block of course. That’s how it works with tanks. When it needs a damaged/undamaged tank model. You should check maps for possible similarities. This one found nearer than you thought tho.


(S14Y3R) #3

Yea changemodel path/to/new/model.md3 in the script with a script_mover and model2 key, like Sage said. To make it work, I recommend a trigger_multiple targetting a target_script_trigger(t_m can simultaniously activate for axis and allies,-i’ll double check this)

k, so trigger_multiple targets target_script_trigger which must have target run. so when someone walks through the trigger_multiple it calls “run” in tst.
eg. :


model_changer //target_script_trigger scriptname/targetname
{
   trigger run
   {
      trigger my_mover change
   }
}

my_mover //script_mover with model2 key
{
   trigger change
   {
      changemodel path/to/new/model.md3
      wait 2000 //time till changeback
      changemodel path/to/old/model.md3
   }
}

So that should do what you want

gl. 8)


(Zer0Cool) #4

wow, thank you very much for the fast reply. Erm the post is nice but there is still the problem that the time till changeback is different and depends to the triggering person because it shall be thatlong changed till he leave and i dont know when the person leaves …

Edit: ok works, ^^. That long the person is in the field the trigger changes the model … mistake by myside! Thanks alot!