Home   Help Search Login Register  

Author Topic: 1.46 Vehicle Respawn Posistions  (Read 1768 times)

0 Members and 1 Guest are viewing this topic.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
1.46 Vehicle Respawn Posistions
« on: 31 Oct 2002, 19:01:09 »
How can I make vehicles respawn in the same exact place I placed them in the beginning?  I use Karrillions vrs script for all my vehicle respawns, but sometimes they respawn inside builings or over hillsides.
« Last Edit: 31 Oct 2002, 23:54:56 by Zombie »

Mike

  • Guest
Re:1.46 Vehicle Respawn Posistions
« Reply #1 on: 05 Nov 2002, 22:04:36 »
Id have to see the script...

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:1.46 Vehicle Respawn Posistions
« Reply #2 on: 05 Nov 2002, 22:37:01 »
ok, the scipt is attached.  The vehicles DO respawn, just not exactly in the same place everytime.

Mike

  • Guest
Re:1.46 Vehicle Respawn Posistions
« Reply #3 on: 06 Nov 2002, 21:57:33 »
It might be the spaces... Ive attached the same script but added spaces to the position dir and vehicles line below.. You will have to try it out. not sure if thats it. Back up the original before u overwirght


?!(local Server): Goto "end"
_vcl = _this select 0
_respawndelay = 20
_dir = Getdir _vcl
_position = Getpos _vcl
_Vehicles = []

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:1.46 Vehicle Respawn Posistions
« Reply #4 on: 07 Nov 2002, 02:20:41 »
Thanks, but that's not it either.  I've attached the entire mission folder, except for the sound folder, (file size restrictions), maybe that will help with the troubleshooting.  Everything else works great with this mission tho
« Last Edit: 07 Nov 2002, 02:25:34 by Zombie »

dreaming_adam

  • Guest
Re:1.46 Vehicle Respawn Posistions
« Reply #5 on: 09 Nov 2002, 16:19:58 »
Not quite sure on the question here, and I cant download your script at the moment (on a restricted computer) but my suggestion if I understand your question is the following:


Then make the script detect if the unit is respawned...
Code: [Select]
_tankoriginalpos = getpos tank
_tankoriginaldir = getdir tank

#alive
~0.01
?(alive tank):goto "alive"
#dead
~0.1
?(!alive tank):goto dead
tank setpos _tankoriginalpos
tank setdir _tankoriginaldir
goto "alive

I havent tested the above code and its all off the top of my head so you may have to format it.. but U should get the general idea.. if ALIVE doesnt work, then use (getdammage < .5)

ciao ciao

Adam