Search the Community
Showing results for tags 'createSimpleObject'.
Found 2 results
-
[CLOSED]addAction to dynamic created createSimpleObject
Grester posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I was fiddling with automated script generation of ACD and was trying to improvise the method to addAction to the objects as it created them but despite no error logged the objects have no action added to them. Is this to be expected from a SimpleObject? It's also worth mentioning that I've put the code in init.sqf which could not produce the best results perhaps. private ["_objects","_object","_data"]; _data = [ ["a3\supplies_f_heli\cargonets\cargonet_01_ammo_f.p3d", [7897.9,17631.1,167.943], [[-0.927911,-0.3698,0.0472062],[0.0173306,0.0837,0.99634]],0], ["a3\supplies_f_heli\cargonets\cargonet_01_ammo_f.p3d", [7894.37,17623.2,168.52], [[0.567657,-0.823121,-0.0154131],[0.0213262,-0.00401339,0.999765]],1] ]; _objects = []; { _object = createSimpleObject [(_x select 0), (ASLToAGL(_x select 1))]; _object setVectorDirAndUp (_x select 2); _object setPosASL (_x select 1); _object addAction ["Virtual Arsenal", {["Open",true] spawn BIS_fnc_arsenal}]; _objects pushBack _object; } forEach _data; _objects;- 2 replies
-
- addAction
- createSimpleObject
-
(and 2 more)
Tagged with:
-
Feature request: add possibility to create simple objects in Eden
pierremgi posted a topic in ARMA 3 - TROUBLESHOOTING
Hello, Please, in Eden, add a check box on each objects compatible with createSimpleObject command. That way, editors could place decorative objects with the benefit of Eden 3D. Thanks