Results 1 to 3 of 3

Thread: Triggered Vehicle Spawn - Check if exists

  1. #1

    Question Triggered Vehicle Spawn - Check if exists

    Hello there everyone, I'am not really into scripting but it seems i cant solve it otherwise. Ive created a map where each Team would run through a Trigger at one Point which should spawn a vehicle at a specified Marker. However, if this vehicle is already spawned somewhere on the map it should do nothing.
    I asked a guy in my Steam Friends list, he told me to use some UID or something, but as i said, im not into coding and have no idea whatsoever.

    So please help me do this, or maybe you got a better solution.

    Thank you, Tearfish

  2. #2
    in the trigger's condition area put:

    PHP Code:
    this and (isNil "nameOfVehicle"
    This will make the trigger to the same thing, but it will only work if the name of the vehicle hasn't been defined.

    Where it says nameOfVehicle put the variable name of the vehicle you are going to spawn.
    Last edited by bobtom; Jun 24 2012 at 16:59.
    Dynamic Zombie Sandbox - V1.25 released! - HERE

    My Twitter = Here|I'm "Craig" ingame!| http://www.dynamiczombiesandbox.com

  3. #3
    Quote Originally Posted by bobtom View Post
    in the trigger's condition area put:

    PHP Code:
    this and (isNil "nameOfVehicle"
    This will make the trigger to the same thing, but it will only work if the name of the vehicle hasn't been defined.

    Where it says nameOfVehicle put the variable name of the vehicle you are going to spawn.
    oh wow it worked, thank you very much.
    i might experiment a bit more with it maybe.

Similar Threads

  1. isNull problem , check if unit exists and update array
    By Wiggum in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 6
    Last Post: Jul 22 2012, 06:06
  2. Check to see if it Exists ISNULL ?
    By psvialli in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: May 6 2012, 00:06
  3. What To Call A Vehicle when using BIS Spawn Vehicle
    By Bigpickle in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 0
    Last Post: Jul 9 2011, 13:42
  4. Make spawn "centers" or realistic vehicle spawn points
    By victim913 in forum ARMA 3 - GENERAL
    Replies: 9
    Last Post: May 27 2011, 09:28
  5. Not triggered by side, triggered by unit.
    By anders@dac.se in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 5
    Last Post: Jun 24 2002, 20:49

Posting Permissions

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