Jump to content
Sign in to follow this  
BEAKSBY

How to create Manual Params...help please

Recommended Posts

Hi all,

I'm referencing Arma 3 Mission Parameters: Manual Params - Config

I am trying to create my own Mission Parameters for Respawn Tickets. The Predefined Params Template already there executes BIS_fnc_paramRespawnTickets.sqf which in turn calls BIS_fnc_bleedTickets HOWEVER, I want it to excute my own modified version of these functions instead.

When I load my game it freezes after the lobby screens and remains only on the mission load screen (with the author, onLoadName and loadScreen picture).

This part of the description files is causing the problem:

description.ext

class Params
{
//this part is causing the problem...	
class CommandPoints 
{
title = "Command Point";
values[] = {100,250,500,1000};
default = 500;
	file = "paramRespawnTickets.sqf"; // (Optional) Script called when player joins, selected value is passed as an argument
};
};

I want it to execute paramRespawnTickets.sqf below, which in turn will call this BEAKS_fnc_BEAKSbleedTickets function.

paramRespawnTickets.sqf

/*
Author: Karel Moricky

Description:
Set side respawn tickets

Parameter(s):
NUMBER - respawn tickets

Returns:
BOOL
*/
hint "HELLO paramRespawnTickets";

private ["_tickets"];
_tickets = [_this,0,500,[0]] call bis_fnc_param;
if (_tickets >= 0) then {
{
	if (playableslotsnumber _x > 0) then {
		[_x,_tickets] call BEAKS_fnc_BEAKSbleedTickets;
	};
} foreach [east,west];
};
true

Edited by BEAKSBY

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×