Page MenuHomeFeedback Tracker

Add scripting command isJIP
Closed, ResolvedPublic

Description

It seems so obvious, but I feel like script writers should be given a reliable way to tell if the local machine joined a mission that was already in-progress.

I've seen many methods involving time/checking if the player isNull. However as far as I know they all have potential to return a false positive/negative depending on timing of the script and ping/etc.

So currently there is no 100% reliable way to tell if the local machine is a JIP player (especially since all methods I know of currently rely on your code running as soon as the players joins the mission - which means if multiple scripted systems need that information you have a bunch of stuff running at once to set some variable for later on).

The way I envision this command working is as follows:

"Returns true/false based on whether the local machine joined the mission already in progress. Always false on the server and in single-player."

This is really a request of convenience more than anything. The above methods do work the majority of the time, but with a command like this we could access the information at any point during the game and be confident that it will always be accurate.

Details

Legacy ID
965243995
Severity
None
Resolution
Fixed
Reproducibility
N/A
Category
Feature Request

Event Timeline

SilentSpike edited Additional Information. (Show Details)
SilentSpike set Category to Feature Request.
SilentSpike set Reproducibility to N/A.
SilentSpike set Severity to None.
SilentSpike set Resolution to Fixed.
SilentSpike set Legacy ID to 965243995.May 7 2016, 8:12 PM
SilentSpike edited a custom field.

isJIP would do. +1

Even better, I'll edit the post with that

Moricky added a subscriber: Moricky.May 7 2016, 8:12 PM

There's already a function BIS_fnc_didJIP.

Example:

  • call BIS_fnc_didJIP;

Returns true if player on the current machine joined in progress.

Oh interesting, thanks for the info Moricky. (Can't be very well known as a google search for that function name returns only 1 result: this page).