Page MenuHomeFeedback Tracker

Add some of the BIS_fncs as scripting commands
Acknowledged, WishlistPublic

Description

What it says on the tin, some of the BIS_fncs would be useful to have as native scripting commands instead (for performance reasons..):

  • BIS_fnc_relPos - ADDED
  • BIS_fnc_relativeDirTo - ADDED
  • BIS_fnc_inTrigger
  • BIS_fnc_inAngleSector
  • BIS_fnc_isInsideArea
  • BIS_fnc_enemyTargets *don't forget the distance parameter for this which is not documented in the function header...
  • BIS_fnc_nearestPosition
  • BIS_fnc_spawnGroup
  • BIS_fnc_spawnVehicle
  • BIS_fnc_groupVehicles
  • BIS_fnc_findNestedElement
  • BIS_fnc_returnParents
  • BIS_fnc_addStackedEventHandler
  • BIS_fnc_removeStackedEventHandler
  • BIS_fnc_arrayInsert
  • BIS_fnc_conditionalSelect

Details

Legacy ID
4058338255
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

h- set Category to Feature Request.Aug 27 2015, 11:14 AM
h- set Reproducibility to N/A.
h- set Severity to None.
h- set Resolution to Open.
h- set Legacy ID to 4058338255.May 8 2016, 12:34 PM
h- added a subscriber: h-.May 8 2016, 12:34 PM
h- added a comment.Sep 8 2015, 3:02 PM

Added couple more to the whislist:

  • BIS_fnc_groupVehicles
  • BIS_fnc_findNestedElement
h- added a comment.Oct 18 2015, 8:02 AM

Added to the wishlist:

  • BIS_fnc_inAngleSector
  • BIS_fnc_isInsideArea

... and the possibility to get the "rangeFinder" distance with anything! (Sorry I don't know the function) but there is no simple way to catch distance between player's eyes and ANY object/ground, like in rangeFinder or laserDesignator. Big thanks the day this command will be issued.

"... and the possibility to get the "rangeFinder" distance with anything! (Sorry I don't know the function) but there is no simple way to catch distance between player's eyes and ANY object/ground, like in rangeFinder or laserDesignator. Big thanks the day this command will be issued."

https://community.bistudio.com/wiki/lineIntersectsSurfaces

Interesting! https://community.bistudio.com/wiki/lineIntersectsSurfaces
I will spend my next weeks to try how to obtain the same distance as in range finder with this magnificent tool! At least, this command needs to be mixed with distance one in a consistent manner with LOD's.

So my request for "simpler" global command "cursorTargetDistance" stays up to date, on my opinion.

h- added a comment.Oct 23 2015, 3:34 PM

Added to wishlist:
BIS_fnc_returnParents

h- added a comment.Oct 23 2015, 3:36 PM

Added couple of more wishes:

  • BIS_fnc_addStackedEventHandler
  • BIS_fnc_removeStackedEventHandler

Bis_fnc_LoadInventory and Bis_fnc_saveInventory. In fact, all functions allowing to manage inventories instead of each weapons, magazines and items.

h- added a comment.Nov 16 2015, 3:26 PM

BIS_fnc_relPos and BIS_fnc_relativeDirTo now in dev branch as scripting commands since 1.55.133361 :)

https://community.bistudio.com/wiki/getPos
https://community.bistudio.com/wiki/getRelDir

h- added a comment.Nov 24 2015, 10:23 AM

Added a new wish into the list:

  • BIS_fnc_arrayInsert

In any case as many array and string manipulation commands as possible would be welcome..

commy2 added a subscriber: commy2.May 8 2016, 12:34 PM

https://community.bistudio.com/wiki/BIS_fnc_conditionalSelect

[[10,0,8,2,6,4], {_x > 5}] call BIS_fnc_conditionalSelect

e.g.
[10,0,8,2,6,4] select {_x > 5}
-> [10,8,6]

h- added a comment.Nov 30 2015, 11:13 AM

Completely forgot that one, added that to the wishlist too.

BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedJul 18 2017, 8:55 PM

BIS_fnc_relPos - DONE (getRelPos)
BIS_fnc_relativeDirTo - DONE (getRelDir)
BIS_fnc_inTrigger DONE (inArea)
BIS_fnc_isInsideArea DONE (inArea)
BIS_fnc_enemyTargets DONE (targets)
BIS_fnc_addStackedEventHandler DONE (mission EHs)
BIS_fnc_removeStackedEventHandler DONE (mission EHs)
BIS_fnc_conditionalSelect DONE (select alt syntax)