Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Delete something and spawn something

  1. #1

    Arrow Delete something and spawn something

    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.

  2. #2
    Anyone?

  3. #3
    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.

  4. #4
    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.

  5. #5
    I have got it working now.

  6. #6
    What is the spawn line for objects.
    Example. (The spawn line for tanks is _tank = "Vulcan" createVehicle (getMarkerPos "Tank."); ).

  7. #7
    Try out these features to createall, take the test mission
    Greetings .. carlosok


    http://www.armaholic.com/page.php?id...ighlight=RAVEN

  8. #8
    the spawn line for objects is also createvechicle

  9. #9
    It does not work.

    ---------- Post added at 10:06 PM ---------- Previous post was at 08:52 PM ----------

    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.");
    I have made a police car spawn when all enemy are dead but it is locked.
    Can anyone tell me how to unlock it.

  10. #10
    Anyone?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •