Jump to content

Thamu

Member
  • Content Count

    11
  • Joined

  • Last visited

  • Medals

Posts posted by Thamu


  1. Hello all! I'm creating a training mission,and I have a small problem. On map Chernarus, I created enemy infantry and vehicles on there,so people can practice some shooting with helos and airplanes. BUT! When everything is destroyed (infantry and vehicle) they dont spawn back! I'm using this script to respawn enemy vehicle: http://forums.bistudio.com/showthread.php?t=76445&highlight=Vehicle+Respawn

    and using a marker to respawn infantry (like wiki is teaching), but this is not working. I already used the search button, but I found nothing about that. There is a possibility of Infantry on a certain city spawn only on there? Thanks.


  2. Thx man, I will try this.

    ____________________________________________________________________________________________

    EDIT: Demonized, it works almost perfectly,exactly what I wanted,but I have a small problem:

    Two targets spawn at same marker.

    I have the same amout of targets and markers. Does it works if I create more markers?

    ______________________________________________________________________________________________

    EDIT²: Well, I just created more markers,and works fine. Instead of every time the player Begin a new MOUT course the targets positions changes,he can choose when he wants to do that.

    Thx for you help man.


  3. Editing Topic for People with same problem:

    IF YOU ARE USING MARKERS:

    // To use: Add this script as an action on an item in it's init field. EG:
    //
    //this addAction ["Teleport - Talon","teleport.sqf",["FOB_Talon"]];
    //this addAction ["Teleport - Base","teleport.sqf",["Base"]];
    //this addAction ["Teleport - Airfield","teleport.sqf",["Airstrip"]];
    
    // Where "Teleport - Base" is what the action will read and ["Base"] is the name of a pre-placed marker.
    
    // Get the destination.
    _dest = (_this select 3) select 0;
    
    // Get a random direction
    _dir = random 359;
    
    // Move the person 15 meters away from the destination (in the direction of _dir)
    player SetPos [(getMarkerPos _dest select 0)-10*sin(_dir),(getMarkerPos _dest select 1)-10*cos(_dir)];

    IF YOU ARE USING GAMELOGICS:

    // To use: Add this script as an action on an item in it's init field. EG:
    //
    //this addAction ["Teleport - Talon","teleport.sqf",[FOB_Talon]]; (without [b]"  "[/b])
    //this addAction ["Teleport - Base","teleport.sqf",[base]];
    //this addAction ["Teleport - Airfield","teleport.sqf",[Airstrip]];
    
    // Where "Teleport - Base" is what the action will read and ["Base"] is the name of a pre-placed marker.
    
    // Get the destination.
    _dest = (_this select 3) select 0;
    
    // Get a random direction
    _dir = random 359;
    
    // Move the person 15 meters away from the destination (in the direction of _dir)
    player SetPos [(getPos _dest select 0)-10*sin(_dir),(getPos _dest select 1)-10*cos(_dir)];

    _____________________________________________________________________________________________

    Hi all. I have a small question.

    On my training mission, I need to teleport people instead of making them walk.

    But the problem is that for each place I have a "teleporter" I have a new script:

    player setPos (getPos base1);
    player setPos (getPos tank_battle);
    player setPos (getPos campo_tiro2);
    ...
    

    I think that I can create a variable,and send to only one script:

    player setPos (getPos "_wheretoteleport");

    But I don't know how to do it.

    To teleport,I created a bike and "addAction":

    this addAction ["Go to Arty Field","teleport_campo_arty.sqf"];

    Thats it. Thanks.

×