I have made a enemy defence and I want it to delete itself when all enemy guarding it are killed.
Then I want it to spawn a friendly defence but I do not know how so could someone help me please.
I have made a enemy defence and I want it to delete itself when all enemy guarding it are killed.
Then I want it to spawn a friendly defence but I do not know how so could someone help me please.
Anyone?
you should be able to make this work using the createvechicle and deletevechicle commands. Your best bet for defining positions are game logics and you should try to put all the commands in two scripts (one for to delete the stuff the other one for creating it), at the moment im not gonna do a step by step explanation but il give you some links which should be able to help you.
http://www.ofpec.com/COMREF/index.ph...id=86&game=All
http://www.ofpec.com/COMREF/index.ph...d=102&game=All
http://community.bistudio.com/wiki/createVehicle
http://community.bistudio.com/wiki/ArmA:_Objects
http://community.bistudio.com/wiki/ArmA:_CfgVehicles
The last two are lists of object and unit names, you iwll need the object names to create your defence.
This does not make no sense to me but I would really appreciate if you could give me a example mission. Sorry if I am asking too much.
I have got it working now.
What is the spawn line for objects.
Example. (The spawn line for tanks is _tank = "Vulcan" createVehicle (getMarkerPos "Tank."); ).
Try out these features to createall, take the test mission
Greetings .. carlosok
http://www.armaholic.com/page.php?id...ighlight=RAVEN
the spawn line for objects is also createvechicle
It does not work.
---------- Post added at 10:06 PM ---------- Previous post was at 08:52 PM ----------
I have made a police car spawn when all enemy are dead but it is locked.deleteVehicle Vehicle1; deleteVehicle Vehicle2; deleteVehicle Static; deleteVehicle Wire1; deleteVehicle Wire2; deleteVehicle Wire3; deleteVehicle Wire4; deleteVehicle Sandbag; deleteVehicle Block1; deleteVehicle Block2; _tank = "Camp" createVehicle (getMarkerPos "Spawn a camp."); _jeep = "Landrover_Police" createVehicle (getMarkerPos "Spawn a police car.");
Can anyone tell me how to unlock it.
Anyone?