Home   Help Search Login Register  

Author Topic: Off the wall questions....  (Read 722 times)

0 Members and 1 Guest are viewing this topic.

dream

  • Guest
Off the wall questions....
« on: 12 Mar 2003, 08:13:51 »
1. Is there a way to keep a soldier from die'n when a vechicle crashes...?

Im not doing a BHD mission, but as an example, when the chopper goes down, the soldiers survive the crash.

2. Is there a way to have "spawn" points updated so once they reach a certain point the closest spawn is the active spawn?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Off the wall questions....
« Reply #1 on: 12 Mar 2003, 08:36:22 »
1. You could try making a script which will increase players health when the vehicle crashes.

;---------------------------------------------
_count = 0
#loop
?!(alive vehicle): goto "health"
~0.1
goto "loop"

#health
_count = _count +1
player setdammage 0
~0.2
?_count == 50: exit
goto "health"
;------------------------------------------


2. If you're using respawn to base, you can easily move the position of the respawn_side marker which marks the respawn spot.
Say you have a town you attack and clear. Once cleared a variable becomes true. Let's call that variable  'var1'

So you make a trigger which detects if the town is clear and then activates var1=true
Make a game logic to that town and call it gl1

;--------------------------------------------------
@var1
"respawn_west" setmarkerpos getpos gl1
exit
;--------------------------------------------------

syntax not guarenteed but something like that  :)
Not all is lost.