Results 1 to 1 of 1

Thread: editor doesn't exect external Scripts

  1. #1

    editor doesn't exect external Scripts

    So I am New to arma 2(1 week old) and currently not working on any missions. I am currently just going in the editor and trying out different commands, triggers, ect... but When i try to use external scripts in game by using the nul = execVM "filename" nothing happens. and I mean nothing. I don't even get an error message. and its just not 1 scripts its every single script even a super duper easy one. like the one on wiki for people starting out. I have spent 2 days looking over the code and tutorials on scripting trying to see if I messed up but nothing. Yes I have unchecked Hide extensions for known file types. I do not have Day z activated when I am trying this, I use ArmA Edit for scripting. but when i ask around some how everyone says im doing something wrong. Here is an example.

    I use a script to spawn units into the game after a civilian walks into the trigger, I have the Function Module out, I have a unit of that type out. But when i walk into the trigger nothing happens.

    _groupname = [(getMarkerPos "spawnpoint1"), EAST, (configFile .. "Cfggroups" .. "EAST" >> "BIS_TK" >> "infantry" >> "TK_infantrysectionAT")] call BIS_fnc_SpawnGroup;

    is the code i used. I saved it to the mission as Spawn1.sqf. Then went into game and put nul = execVM "Spawn1.sqf" into the trigger. I have also tried _nil = [] and i have tried Script =. I made sure i had a unit of that faction on the map and the function module on the map.

    This is just one out of 3 other scripts I have tried to do. I can execute some of the simple in game commands. Like addweapons removeweapons, and all that fun junk but when I get any more complex than that it doesn't work. Please help, I really want to be able to code for some missions and any help would be much appreciated!!!! Please and thank you
    Last edited by Vultex; Aug 13 2012 at 05:20.

Similar Threads

  1. More GUI, less scripts in the editor.
    By Flogger23m in forum ARMA 3 - GENERAL
    Replies: 23
    Last Post: May 7 2012, 16:10
  2. External Scripts
    By otester in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 17
    Last Post: Dec 22 2006, 17:55
  3. External scripts
    By otester in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 0
    Last Post: Dec 21 2006, 11:10
  4. chopper howering at an exect posision
    By general in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 1
    Last Post: Mar 3 2006, 19:55
  5. Scripts for all editor missions?
    By Havok69 in forum GENERAL
    Replies: 1
    Last Post: Sep 20 2005, 10:05

Posting Permissions

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