Home   Help Search Login Register  

Author Topic: help needed with getdammage  (Read 641 times)

0 Members and 1 Guest are viewing this topic.

DC10_starvinmarvin

  • Guest
help needed with getdammage
« on: 10 Mar 2004, 23:32:03 »
Hi i am making a little script containing as follows. The problem is that the script never goes to "destroyed" but just keep running as usual and you will still get teleported to the destroyed basecamp. im sure this is just some small bug that i didnt see. im pretty new with this stuff  ;)

Greetz // StarvinMarvin

-----------------------------------------------------------
_soldier = _this select 0;
_camp = _this select 1;

?(GetDammage basecamp > .8): "destroyed"
~0.1
_soldier setpos getpos basecamp
 
goto exit

#destroyed
hint "Mobile basecamp is destroyed or does not exist. Spawned at HQ"

#exit


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:help needed with getdammage
« Reply #1 on: 10 Mar 2004, 23:38:30 »
?(GetDammage basecamp > .8): goto "destroyed"
Plenty of reviewed ArmA missions for you to play

DC10_starvinmarvin

  • Guest
Re:help needed with getdammage
« Reply #2 on: 11 Mar 2004, 00:36:58 »
thanks alot.. knew it had to do with that but couldnt found out by myself ;)  another question then. how to i make for ex a tent get placed 6 metres in front of a truck when using this script?  tent setpos getpos truck       where and how do i add the +6 for distance..   it doest matter if its placed behind in front of or beside.

greetz // Marv

m21man

  • Guest
Re:help needed with getdammage
« Reply #3 on: 11 Mar 2004, 01:11:11 »
tent setpos [getpos truck select 0, (getpos truck select 1) + 6, getpos truck select 2]

DC10_starvinmarvin

  • Guest
Re:help needed with getdammage
« Reply #4 on: 11 Mar 2004, 01:33:26 »
thanks alot guy! really helped! :D :D :D :D :D