OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: Headhunter on 17 Aug 2004, 16:19:53

Title: zombie addon
Post by: Headhunter on 17 Aug 2004, 16:19:53
Anyone knows how to get the Unified Zombie Addon to work, i have tried to place a game logic like it says in the readme but they just stand and look stupid, anyone who can help?
Title: Re:zombie addon
Post by: General Barron on 17 Aug 2004, 21:06:29
Did you follow ALL the instructions in the readme? Take a look at it again, because I know you have to make an array of units that will be targeted by the Zombies.
Title: Re:zombie addon
Post by: Headhunter on 18 Aug 2004, 10:45:54
what do you mean??? i have seen in the readme again and there is something about arrays but what are they and how do you get them to work???
Title: Re:zombie addon
Post by: General Barron on 18 Aug 2004, 22:03:44
An array is a list of things--in this case, units. To make an array, you would put something like this in an init field:

ArrayX = [player, bob, soldier2, johnny]

Now ArrayX holds those 4 units. So just replace "ArrayX" with the name of the array required by the zombie addon, and put in the names of all the units you want to be attacked by the zombies between the brackets.
Title: Re:zombie addon
Post by: Headhunter on 19 Aug 2004, 20:09:30
it works now, thanks guys