Home   Help Search Login Register  

Author Topic: How to make buildings respawn!?!?  (Read 663 times)

0 Members and 1 Guest are viewing this topic.

FIRE

  • Guest
How to make buildings respawn!?!?
« on: 12 Feb 2005, 22:43:24 »
Hi, I am having trouble with making buildings respawn.  I already have the long list of buildimg names, but im confused    am i susposed to guess which building the names is?  Also do need to make a trigger toware it reaspawns? Is it possible to make 1 huge trigger toware all buildings will respawn? Thx,  Fire.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to make buildings respawn!?!?
« Reply #1 on: 13 Feb 2005, 05:19:57 »
Being a bear of very little brain, I have no idea what are you talking about.   I cannot imagine any scenario in which a mission designer would want a building would respawn, the concept is utterly bizarre.   It will be terrifyingly confusing for the player - he destroys a building, and then it reappears undestroyed?????????   Is that what you want?

What are you trying to do?    Is this for MP or SP?    Do you want the buildings to respawn in a different place or the same place?     Under what circumstances?   Do you mean island buildings or buildings placed in the mission editor?

Oh, and

Welcome to the forum!
« Last Edit: 13 Feb 2005, 05:24:25 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:How to make buildings respawn!?!?
« Reply #2 on: 13 Feb 2005, 15:50:19 »
I put a building repair script in some of my multiplayer maps.  For buildings that are place by me in the editor it is fairly easy.  I give each building a name, like hh1, hh2, hh3  etc and then run this:
Code: [Select]
#start
"_x setdammage 0" foreach [hh2,hh3,hh4,hh5,hh6,hh7,hh8,hh9,hh10,hh11,hh12,hh13,hh14,hh15,hh16,hh17,hh18,hh19,hh20,hh21,hh22,hh23,hh24,hh25,hh26,hh27,hh28]
"_x setdammage 0" foreach [hh29,hh30,hh31,hh32,hh33,hh34,hh35,hh36,hh37,hh38,hh39,hh40,hh41,hh42,hh43,hh44,hh45,hh46,hh47,hh48,hh49,hh50,hh51,hh52,hh53,hh54,hh55]
~2
goto "start"

It works just fine for MP, and doesn't appear to cause any lag.  It may be possible to repair island buildings also, but I never seem to have any luck with the nearestbuilding command.