OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Resources Beta Testing & Submission => Topic started by: subroc on 30 Jul 2009, 23:16:25

Title: CAMOS - CArry MOrtar Script
Post by: subroc on 30 Jul 2009, 23:16:25
Hi

This is a quick n' dirty fix to be a little more mobile with mortars.
you can pick them up, get in vehicles, driver around and then place them where you want.

Checkout the readme in the missionfolder and the demomission for more info.

*edit: This is totally untested in MP
*edit2: Updated to 0.2

Changelog:

0.1
- First release

0.2
- Added Mandobles getpos function, drops mortar when crouched or prone
- Added "feature" ie. bug from implementing mando getpos: if you sprint with mortar you drop it and it may land on you legs and hurt you ;) (this will stay as i find it quite cool and "realistic")
- Added option to choose if 3 units per group needed to pickup mortar

Title: Re: CAMOS - CArry MOrtar Script
Post by: granQ on 02 Aug 2009, 23:29:25
awesome "feature/bug"  :good:
Title: Re: CAMOS - CArry MOrtar Script
Post by: jones on 09 Aug 2009, 05:40:44
Code: [Select]
Error in expression <// _arty_logic = "BIS_ARTY_Logic" create>
  Error position: <// _arty_logic = "BIS_ARTY_Logic" create>
  Error Invalid number in expression
Error in expression <// _mortar synchronizeObjectsAdd [_arty_>
  Error position: <// _mortar synchronizeObjectsAdd [_arty_>
  Error Invalid number in expression
Error in expression <if (subroc_mortarteam == null) then {subroc_>
  Error position: <subroc_mortarteam == null) then {subroc_>
  Error Undefined variable in expression: subroc_mortarteam
Error in expression <if (subroc_mortarteam == null) then {subroc_mortatteam = false}>
  Error position: <null) then {subroc_mortatteam = false}>
  Error ==: Undefined variable in expression: null

Need to comment the sqs code with a semi colon and not the back slash. Causes errors in the rpt file.

Also need to make sure your variables are defined.