OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: eegore on 05 Jun 2010, 19:40:25

Title: ArmA Support Pack V2 mission examples
Post by: eegore on 05 Jun 2010, 19:40:25

  Does anyone have a working link to the example mission(s) for the Support Pack V2 by Michael?  I have the pack but cant figure out how to call the scripts correctly. 

  On a related note I have the Napalm demo mission but if I copy/paste the Napalm folder and the description.ext to another mission I always get the sound not found pop up wen the nape drops.  I don't know why this happens since the folder is exactly the same so all the sounds are there. 

  Maybe the example mission can be dissected so I can see what Im doing wrong.

Thanks
Title: Re: ArmA Support Pack V2 mission examples
Post by: savedbygrace on 16 Jun 2010, 13:01:49
SQF = object execVM "script.sqf"  
SQS = object exec "script.sqs"

Make sure the file location matches that of the call line, for example
object execVM "scriptfolder\scripteffectsfolder\scripttripwire.sqf"

Also, when using the sqf call in a trigger or waypoint (global space) you must assign it to a variable to hold the return value, for example
nul=[] execVM "scriptsfolder\customscript.sqf"

The engine not locating a sound can be any of several reasons.