Page 1 of 3 123 LastLast
Results 1 to 10 of 25

  Click here to go to the first Developer post in this thread.  

Thread: Editing/Scripting

  1. #1
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616

    Editing/Scripting

    Well so far there is no Editing/Scripting section so i will post it here.

    Game Logic:
    Looks like Game Logics can not moved ( setPos ) any longer.
    I do used Game Logics to create a move point.

    Example:
    Code:
    _group = _this select 0;
    
    _logic = "Logic" createVehicle [0, 0, 0];
    
    _logic setPos (getPos player);
    
    _group move (getPos _logic);
    setCaptive:
    Units which do use the setCaptive command are now on side civilian.

    Example:
    Code:
    player setCaptive True;
    
    if (side player == civilian) then {hint "Damn it im supposed to be a soldier!"};

  2. #2
    I don't like the thought that you're using game logics for this.

    Use markers or "H (invisible)" instead.


    Btw.. Check out locations. Might be exactly what you're trying to do with game logics.

    http://community.bistudio.com/wiki/createLocation



    Also, I don't get why you want to do:
    Code:
    _group = _this select 0;
    
    _logic = "Logic" createVehicle [0, 0, 0];
    
    _logic setPos (getPos player);
    
    _group move (getPos _logic);

    When you can just do

    Code:
    _group doMove getPos player
    or
    Code:
    _group move position player
    ?????


    PS: I prefer doMove as it will make the unit move to the position, where as move creates a waypoint for the unit. (Unless of course, you're building a path)
    Last edited by MulleDK19; May 28 2009 at 23:27.

  3. #3
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    Author of the Thread
    Yes the part with the logic was just an example.

    Of course i would never do something like that.

    Well i use addWaypoint instead of a logic.

  4. #4
    Quote Originally Posted by SNKMAN View Post
    Yes the part with the logic was just an example.

    Of course i would never do something like that.

    Well i use addWaypoint instead of a logic.
    Why do you need to create anything to move them?

    Why not just move them with doMove?

  5. #5
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    Author of the Thread
    Becouse i need a object that is setPost with a random value every time i call it.

    And then let the group move to it.

  6. #6
    Quote Originally Posted by SNKMAN View Post
    Becouse i need a object that is setPost with a random value every time i call it.

    And then let the group move to it.
    Why not just:
    Code:
    _group doMove [random 3000, random 3000, 0]
    ?????

  7. #7
    Chief Warrant Officer
    Join Date
    Jan 17 2004
    Location
    Auckland, New Zealand
    Posts
    3,788
    Quote Originally Posted by SNKMAN View Post
    Becouse i need a object that is setPost with a random value every time i call it.

    And then let the group move to it.
    Can't you use a waypoint for that?

    Strange that gamelogics can't be moved though.

  8. #8
    Is there a way to see the list of possible respawn options with A2? You know, like bird, base,group, etc?
    It’s almost D&D - someone creating a scenario for their friends to play. Only WAR, not elves.

  9.   This is the last Developer post in this thread.   #9
    Über Verwalter Placebo's Avatar
    Join Date
    Jul 23 2001
    Location
    Visby, Gotland, Sweden
    Posts
    21,025
    Moving to the shiny new editing/scripting forum
    If someone reports an issue/complains about the Alpha etc, replying in the thread "dude it's an alpha" doesn't really help anyone! Point them to the Arma3 Alpha feedback tracker instead please!

    Please do not PM or Email me directly about your CD Key issues, follow the guidance in this thread instead.

  10. #10
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    Author of the Thread
    Quote Originally Posted by MulleDK19 View Post
    Why not just:
    Code:
    _group doMove [random 3000, random 3000, 0]
    ?????
    Well i know all thouse way's how to let a unit/group move from A to B it wasn't a request to tell me how to slove this problem.

    The only reason, why i started this thread was to let the community know about some new command behaviours.


    Helicopter Landing:
    The command "Get In" was changed to "GETIN"

    I think its the same goes for "GET OUT" use "GETOUT" instead.
    Last edited by SNKMAN; May 29 2009 at 19:52.

Page 1 of 3 123 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
  •