Page MenuHomeFeedback Tracker

[Feature request] Possibility to create CT_OBJECT and/or CT_OBJECT_CONTAINER through sqf?
Feedback, NormalPublic

Description

is it possible to have CT_OBJECT and/or CT_OBJECT_CONTAINER be created using ctrlCreate too? its a powerful tool that would allow Public zeus game masters to view any model using GUI (locally executed), it is also less painful to work with than hpp.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

example (not working):

with uiNamespace do {
RscObjectDisplay = (findDisplay 46) createDisplay 'RscDisplayEmpty'; 

_RscObject = RscObjectDisplay ctrlCreate ["RscObject", 1234];
_RscObject ctrlSetPosition [0.5 * safezoneW + safezoneX,0.5* safezoneH + safezoneY,2];
_RscObject ctrlSetModel "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d";
_RscObject ctrlSetModelDirAndUp [[0,1,0],[0,0,1]]; 
_RscObject ctrlSetModelScale 0.5;
_RscObject ctrlCommit 0;

};

hpp (works):

#define CT_OBJECT   

class coolstuff
{
	idd = 1434;
	access = 0;
	movingEnable = true;
	enableSimulation = true;
	class Controls
	{

	};

		class Objects
		{
		class Test
		{
			idc = 5004;
			type = 80;
			movingEnable = false;    // true to enable moving dialog with mouse
			enableZoom = 0;
			zoomDuration = 0.001;
			inBack = 1;
			direction[] = {0.707107,0,0.707107};
			up[]={0,1,0};
			position[] = {0,0,2.5};
			scale=0.12;
			model = "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d";
			xBack = 0.6;
			yBack = 0.45;
			zBack = 1.2;
			
			x = 0.5 * safezoneW + safezoneX;
			y = 0.5* safezoneH + safezoneY;	
			z = 2;
		};
	};
};

Event Timeline

BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedMay 23 2022, 10:25 AM

Could you provide repro? i.e. hpp version that is not possible to create by script?

BIS_fnc_KK changed the task status from New to Need More Info.May 23 2022, 10:25 AM

Could you provide repro? i.e. hpp version that is not possible to create by script?

here is a simple one:

with uiNamespace do {
RscObjectDisplay = (findDisplay 46) createDisplay 'RscDisplayEmpty'; 

_RscObject = RscObjectDisplay ctrlCreate ["RscObject", 1234];
_RscObject ctrlSetPosition [0.459907 * safezoneW + safezoneX, 0.443518 * safezoneH + safezoneY, 0.0412056 * safezoneW, 0.055 * safezoneH];
_RscObject ctrlSetModel "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d";
_RscObject ctrlSetModelDirAndUp [[0,1,0],[0,0,1]]; 
_RscObject ctrlSetModelScale 0.5;
_RscObject ctrlCommit 0;

};
Troalinism edited Additional Information. (Show Details)May 23 2022, 10:48 AM

Could you provide repro? i.e. hpp version that is not possible to create by script?

#define CT_OBJECT   

class coolstuff
{
	idd = 1434;
	access = 0;
	movingEnable = true;
	enableSimulation = true;
	class Controls
	{

	};

		class Objects
		{
		class Test
		{
			idc = 5004;
			type = 80;
			movingEnable = false;    // true to enable moving dialog with mouse
			enableZoom = 0;
			zoomDuration = 0.001;
			inBack = 1;
			direction[] = {0.707107,0,0.707107};
			up[]={0,1,0};
			position[] = {0,0,2.5};
			scale=0.12;
			model = "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d";
			xBack = 0.6;
			yBack = 0.45;
			zBack = 1.2;
			
			x = 0.5 * safezoneW + safezoneX;
			y = 0.5* safezoneH + safezoneY;	
			z = 2;
		};
	};
};
BIS_fnc_KK changed the task status from Need More Info to Assigned.
Troalinism edited Additional Information. (Show Details)May 23 2022, 11:17 AM
Troalinism edited Additional Information. (Show Details)May 23 2022, 11:46 AM
This comment was removed by BIS_fnc_KK.
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jan 1 2023, 1:34 AM
BIS_fnc_KK changed the task status from Assigned to Feedback.

Example in this ticket