Home   Help Search Login Register  

Author Topic: Addon / Script Query (?) - Jerrycans  (Read 873 times)

0 Members and 1 Guest are viewing this topic.

Offline Roni

  • Members
  • *
  • Play the Game !
Addon / Script Query (?) - Jerrycans
« on: 25 Nov 2003, 03:56:43 »
Hello All

I'm not sure whether or not this is an addon query or a script query.   ???

I am working on a mission in which a column of tanks is trying to cross a desert map while being pursued by a bunch of fanatical Afghan rebels.  I have group respawn on and the idea is that so long as you can get ONE tank back to base you (the player) will win.  Bad luck for the other 11 guys who got killed or left behind but eh, whadayya gonna do ?   :gunman: ;D

I have a number of scripts that give the mission a "running battle" feel - time dilation, endlessly spawning Afghans and fuel and damage scripts that progressively tear the tanks apart.

What I want is a script / addon that would allow a player to refuel one tank from another.  I'm thinking of creating some sort of new "unit" called a Jerrycan that would behave in some ways like a mine or satchel charge.  In other words it would take up 2-3 ammo spots on the players weapons total and could be placed or picked up at any time.   :P

The player should be able to take a jerrycan and place it next to a tank and run a script to "fill" or "empty" it.  If a friendly or empty tank is close enough then the appropriate action would occur.

I want the Jerrycan to take up space so that a player couldn't carry a milion of them and so that he can leave them behind if necessary.

I am pretty sure that I can write something like this using just scripts (script on tank checks for another tank within 2-3 metres to siphon to) but it would be good if I could have actual jerrycan "units" that I could move, place, pick up, destroy and so on.

Any ideas ?



Roni

PS - Is this the right forum ?


Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re:Addon / Script Query (?) - Jerrycans
« Reply #1 on: 25 Nov 2003, 15:30:34 »
Here's one "idea": the Berlin 1945 mod's Jerrycans: http://ofp.gamezone.cz/index.php?showthis=5004

The rest is just scripting...


Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Addon / Script Query (?) - Jerrycans
« Reply #2 on: 25 Nov 2003, 17:05:21 »
script linjes that will be used

[vehiclenameA setfuel 1

this would refill it

for vicinity activation use:

VehiclenameA distance vehiclenameB<5:VehiclenameA setfuel 1

you would use an addaction to add the action to a drop down menu

and there are gargo capacity commands that can be used to diminish or add to a vehicles cargo space

Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Addon / Script Query (?) - Jerrycans
« Reply #3 on: 26 Nov 2003, 03:50:40 »
Thanks for that guys.

I tried the link but for some reason I ended up on a redirect page that looks like some sort of ad - very strange.

I've decided to wimp out and take the easy option - an addaction for the character to fill jerrycans or (once loaded) to empty jerrycans.  I obviously have to look up the relevant commands to weigh the character down, would have been nice to have a pretty graphic on his weapon list - maybe I'll try that site again later.

Thanks again all.