From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- This function sets up an object as intel retrievable by the players by adding a "Take Intel" addAction to it.
When a player uses the action, they will play an animation to pick the object up and the object will be deleted from the mission.
The player and any defined recipients will then receive a diary entry which can contain a title, description and picture.
The diary entry will also contain a marker shortcut showing where the intel was found.
This function is similar to placing an intel object as Zeus, but the Zeus interface provides some extra options like:
- Which sides can interact with the action
- The picture, title and description used in the diary entry
When using this function from script there are several variables that need to be set up to acquire the same results (see the examples below).
Without this extra setup the functionality provided is minimal and only includes:
- The "Take Intel" action on the object
- The object can be picked up by a player from any side
- When picked up it will have no title or description and the picture will be a default exclamation mark
- The diary entry will only be given to the person who picked it up
There are some optional features of intel objects that can be used:
- The diary entry's description can be further enhanced by using the supported tags found on the createDiaryRecord page.
- There is also a scripted eventhandler called "IntelObjectFound" that can be registered on the intel object. The event provides the parameters [object, caller] where object is the intel object and caller the person who picked it up.
- A Zeus who has the intel object registered as a curator editable object can also receive feedback that the intel has been picked up if the scripted eventhandler called "intelObjectFound" was registered on the curator module. The event provides the parameters [zeus, caller, object] where zeus is the curator module, caller the person who picked it up and object is the intel object.
The usage of these scripted event handlers is shown in Example 3.
- Execution:
- call
- Groups:
- Interaction
Syntax
- Syntax:
- [object] call BIS_fnc_initIntelObject
- Parameters:
- object: Object - object to place intel action on
- Return Value:
- Boolean - true when done
Examples
- Example 1:
- Setup an object as intel from its init attribute in the editor.
Basic version including picture, title, description, recipients and sides that can interact with it:
- Example 2:
- To set up an object as intel from its init attribute in the editor with a custom addAction title, replace the first line of Example 1 with the following:
- Example 3:
- Set up an object as intel from its init attribute in the editor.
Basic version plus curator and scripted event handlers:
Although both scripted event handlers supply a reference to the intel object, it is deleted from the mission almost immediately, so it could already be null when queried.
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note