ACE3/documentation/framework/javelin-framework.md

24 lines
692 B
Markdown
Raw Normal View History

2015-08-23 19:03:31 +00:00
---
layout: wiki
2015-08-25 01:30:36 +00:00
title: Javelin Framework
description: Explains how to set-up Javelin-style locking system to a launcher.
2015-08-23 19:03:31 +00:00
group: framework
order: 5
parent: wiki
---
2015-08-25 01:30:36 +00:00
## 1. Config Values
2015-08-23 19:03:31 +00:00
```c++
class CfgWeapons {
2015-08-25 01:30:36 +00:00
class MyLauncher {
ace_javelin_enabled = 1; // Enable Javelin-style locking (0-disabled, 1-enabled)
weaponInfoType = "ACE_RscOptics_javelin"; // Inteface
modelOptics = "\z\ace\addons\javelin\data\reticle_titan.p3d"; // Optics model
canLock = 0; // Disable vanilla locking (0-disabled, 1-enabled)
lockingTargetSound[] = {"", 0, 1}; // Locking sound
lockedTargetSound[] = {"", 0, 1}; // Target acquired sound
2015-08-23 19:03:31 +00:00
};
};
```