Home   Help Search Login Register  

Author Topic: SetPos spontaneously combusts vehicles?  (Read 1183 times)

0 Members and 1 Guest are viewing this topic.

sans-pareil

  • Guest
SetPos spontaneously combusts vehicles?
« on: 15 Jun 2003, 02:34:12 »
Wondering if someone can help me out with this, must be something simple, but I don't see it.

I'm writing a script which checks the status of two specific vehicles every minute, and if they're sufficiently damaged, it moves them back to near the respawn point, and then sets the damage to 0.

For some obscure reason, the vehicles have a tendency to instantly explode upon arrival. Not sure if it's the setdammage or the setpos command, still need to test that out, but before I start commenting out one line at a time and rebuidling the (huge) pbo each time, I was wondering whether someone happens to know what could be causing it. I've tried giving the vehicles a tiny bit of altitude in the setpos command, with no joy.

I would be much obliged if someone knew how to solve this.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:SetPos spontaneously combusts vehicles?
« Reply #1 on: 15 Jun 2003, 13:05:52 »
I tried the attached script and it setpos's the 2 tanks without blowing them up.  On first try they setpos'd on top of eachother and got dammaged, thats why I used 2 "home" logics.  May be an easier way but I'm not good with group arrays.  Hope this helps...

sans-pareil

  • Guest
Re:SetPos spontaneously combusts vehicles?
« Reply #2 on: 15 Jun 2003, 13:48:44 »
OK, I'm working from a script and not from a game logic marker... your use of markers as the place to move the vehicle to may help though, as I have a hunch that the vehicles appearing partially in the ground is what is causing them to explode.

I'll experiment with the markers some and let uoi know how it progresses. Probably get the script to create the markers where the vehicle needs to be moved to.

Thanks anyway.