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

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

Thread: V1.85 scripting reference

  1. #1
    Guest
    The updated v1.85 scripting reference is available for download here or for online browsing here.

  2. #2

    Post

    loadFile filename
    Operand types:
    filename: String
    Compatibility:
    Version 1.82 required.
    Type of returned value:
    String
    Description:
    Return content of given file.

    Example:
    loadFile "myFunction.sqf" , result is "if a>b then {a} else {b}"


    --------------------------------------------------------------------------------

  3. #3
    Gunnery Sergeant
    Join Date
    May 10 2002
    Location
    That's my business! :p
    Posts
    436
    Yes....What's your point?

  4. #4
    Gunnery Sergeant
    Join Date
    Nov 19 2001
    Location
    North London
    Posts
    512
    I'd have thought it was obvious.
    -Shabadu-

    OFP tactics as used by Homer and Shabadu
    First of all you gotta cry like a girl and when he turns away in disgust that's when it's time to kick some back and when he's down on the floor step on his neck and run like hell!

  5. #5
    Gunnery Sergeant
    Join Date
    May 10 2002
    Location
    That's my business! :p
    Posts
    436
    Nope...I don't get it.

    He may be happy at the fact that there is a loadfile command, but just pasting what it says in the comref ain't much of an indication.

    PEACE

  6. #6
    I don't understand either, good work on the command ref BIS.

    RED

  7. #7
    I think its to execute a sqf (2GL Flashpoint script) and fetch the variables into local sqs variables. In the example they just check witch of _a and _b ist the greater and fetch thisone. (excuse my english I speak swissgerman

  8. #8
    I didn't mean I don't understand the script, I mean i didn't understand why he pasted it into this thread

    RED

  9.   Click here to go to the next Developer post in this thread.   #9

    Unhappy

    Question:
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">friendly
    Compatibility&#58;
    Version 1.78 required.
    Type of returned value&#58;
    Side
    Description&#58;
    Friendly side &#40;friendly to all units&#41;.

    [/QUOTE]<span id='postcolor'>

    also enemy....

    what is this? I don&#39;t know, I don&#39;t understand how friendly and enemy is used. Also, for event handler, anyone here know a really good way of checking if a vehicle has been destroyed by using eventHandler? I have some stuff going but it&#39;s not 100% reliable.

    Thanks in advance
    "Peace can not be kept by force. It can only be achieved by understanding." Albert Einstein

    Please report Arma 3 bugs in the Bug Tracker

  10. #10
    Gunnery Sergeant
    Join Date
    May 10 2002
    Location
    That's my business! :p
    Posts
    436
    I&#39;m guessing it&#39;s just checking the rating of a unit. You know, when a units rating goes below 0 he&#39;s a rebel.

    Either that, or you could use it to check if one unit is friendly towards the other:

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Sovman friendly Westman[/QUOTE]<span id='postcolor'>

    Dunno about that though, can&#39;t check cause i haven&#39;t D/L 1.87.

    PEACE




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
  •