The RealD
Grunt
Posts: 8
Registered: 5-5-2005
Member Is Offline
|
|
Two questions...
- i asked about it for a boat already, but now its for a tank...
I want to make a tank chase me once it sees me. did all the events (made a strings that apears when it is, just to check if the event works), I used
the tank's ssn with the "redirect to player". just like the boat - nothing (the string showed up...)
- How do i reduce the health of a tank, so that just 2 AT4s will kill it. used an event like so: if ssn(tank) health is XXX then
kill ssn.
i tried different numbers and it worked like so: either the tank exploded even before i shot it, or it explodes after one AT4 or the normal way.
the game is a single player type.
help please...thanx
|
|
|
One Shot One Kill
Captain
  
Posts: 283
Registered: 12-18-2004
Location: Great Britain
Member Is Offline
Mood: Thinking...
|
|
1. For the tank chasing you part, I suggest you create a set of waypoints for it to follow that go in the same directions as your waypoints.
2. For the tank health part, create an event, if you can to make the tank blow-up after 2 AT-4's have been fired at it.

"One Shot One Kill"
|
|
|
perigrine falcon
Map Rater
     
Posts: 1684
Registered: 3-11-2003
Location: Iowa
Member Is Offline
|
|
for the heath use the same logic for killing the tank but use mission variables
if SSN(tank)health is less than XXX set mission variable 1 to 1
if SSN(tank)health is less than XXX set mission variable 2 to 1
if mission variable 1 =1 and mission variable 2=1 kill SSN(tank)
this way the only way tank is killed is if health is below XXX
another way (if possible) is to take a set amount of health from the tank before mission starts
sorry couldnt go into more detail im at the end of my lunch break and dont have enough time to make a test map and make it work will try to figure it
out later hope this helps for now
|
|
|
General Electric***
Corporal
 
Posts: 155
Registered: 7-9-2005
Member Is Offline
Mood: generous
|
|
1.) @ one-shot-one-kill :
How do u create an event that is able to detect, that 2 ATs have been fired at a tank???
2.) @ perigrine falcon : I am not sure if health does work in DFX the way u showed it. At least in JOE it will only return the health of player1 or
ssn10000. I have DFX also haven´t tried it out but there is ssnhp() that way you can SET the healthpoints of an ssn. Now dont ask me how high the
hitpoints for a tank have to be. Can be 150 like with AIs can also be different...
So either u try it out : set ssnhp(ssntank,X)
and experiement. Or take
if ssnwounded(ssntank) then
ssnkill(ssntank)
endif
That way he should die after he has only 1/3 of his health left, no matter how much that is. I think normally it takes 4 At to take out a tank so 25%
each. SSnwounded triggeres at 33% so take a little maths and u get to 3 ATs which bring the tank down to 25%hp = ssnwounded = ssnkill.
|
|
|
perigrine falcon
Map Rater
     
Posts: 1684
Registered: 3-11-2003
Location: Iowa
Member Is Offline
|
|
i takes 3 AT4s to kill a tank
i got it to work consistantly using 1 AT4 but couldnt get 2 to work i just used events didnt try making a WAC file
if SSN(tank) has lost 5000
(5000 is the max) or more health
kill SSN(tank)
i tried the event below and it didnt work after 2 AT4s
if SSN(tank) has 5000 or less health
kill SSN(tank)
since the AT4s take at least 5000 HPs and the tank doesnt blow up with the above event its safe to say the tank has over 15000 hit points
|
|
|