Home   Help Search Login Register  

Author Topic: Auto bridge repair  (Read 497 times)

0 Members and 1 Guest are viewing this topic.

illmatic

  • Guest
Auto bridge repair
« on: 10 Apr 2004, 10:00:06 »
on res 1.91, i was in a server and east blew up 1 section of the bridge, after about 30 seconds it repaired, it was that big bridge on Nogova.........

can someone explain how they did this if wasnt a placed object??

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Auto bridge repair
« Reply #1 on: 10 Apr 2004, 10:42:04 »
In the editor you have an option to 'show object id's'. When you click on the button to enable object id's and zoom in close you can see that every tree, house, bush and yes even every piece of the bridge have a unique ID. you can use this id in your scripts and commands.
I'm thinking the mission you talk about had something like this:

Code: [Select]
;bridgerepair.sqs
#loop
object x setdammage 0
object x setdammage 0
object x setdammage 0
object x setdammage 0
~30
goto "loop"

where x is the ID number of the piece of bridge.
Not all is lost.

illmatic

  • Guest
Re:Auto bridge repair
« Reply #2 on: 10 Apr 2004, 13:12:39 »
ohhhhh right! thanks this works  ;D 8)