snakeplissken 96 Posted January 1, 2015 I am creating a mission where a task is to get a sniper rifle, then would the goal is completed when I pick up in box of weapons, a sniper rifle "GM6 Lynx". * Or out of the gun box too, since you can add it in the game editor (Class> Weapons (primary) GM6 Lynx) And how to make a object "Objects (small)> file (Top Secrect)" of the game, be interactive, where I can handle it, so a task be completed after guard it in my inventory. Sorry my english, using google translater for post here. Share this post Link to post Share on other sites
killzone_kid 1330 Posted January 1, 2015 Trigger condition: "srifle_GM6_camo_LRPS_F" in weapons player Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted January 1, 2015 As for the "top secret" file: [color=#FF8040][color=#1874CD]_file[/color] [color=#8B3E2F][b]=[/b][/color] [color=#191970][b]createVehicle[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#7A7A7A]'Land_File_research_F'[/color][color=#8B3E2F][b],[/b][/color] [color=#191970][b]getPosATL[/b][/color] [color=#000000]player[/color][color=#8B3E2F][b],[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b],[/b][/color] [color=#FF0000]0[/color][color=#8B3E2F][b],[/b][/color] [color=#7A7A7A]'CAN_COLLIDE'[/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b];[/b][/color] [color=#1874CD]_file[/color] [color=#191970][b]addAction[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#7A7A7A]'Take file'[/color][color=#8B3E2F][b],[/b][/color] [color=#8B3E2F][b]{[/b][/color][color=#191970][b]deleteVehicle[/b][/color] [color=#8B3E2F][b]([/b][/color][color=#000000]_this[/color] [color=#191970][b]select[/b][/color] [color=#FF0000]0[/color][color=#8B3E2F][b])[/b][/color][color=#8B3E2F][b];[/b][/color] [color=#1874CD]_task[/color] [color=#191970][b]setTaskState[/b][/color] [color=#7A7A7A]'Succeeded'[/color][color=#8B3E2F][b]}[/b][/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b];[/b][/color][/color] Kudos to Killzone_Kid for his SQF to BBCode Converter. Share this post Link to post Share on other sites
snakeplissken 96 Posted January 8, 2015 Trigger condition: "srifle_GM6_camo_LRPS_F" in weapons player Thank you very much! was the way I wanted! As for the "top secret" file: [color=#FF8040][color=#1874CD]_file[/color] [color=#8B3E2F][b]=[/b][/color] [color=#191970][b]createVehicle[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#7A7A7A]'Land_File_research_F'[/color][color=#8B3E2F][b],[/b][/color] [color=#191970][b]getPosATL[/b][/color] [color=#000000]player[/color][color=#8B3E2F][b],[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b],[/b][/color] [color=#FF0000]0[/color][color=#8B3E2F][b],[/b][/color] [color=#7A7A7A]'CAN_COLLIDE'[/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b];[/b][/color] [color=#1874CD]_file[/color] [color=#191970][b]addAction[/b][/color] [color=#8B3E2F][b][[/b][/color][color=#7A7A7A]'Take file'[/color][color=#8B3E2F][b],[/b][/color] [color=#8B3E2F][b]{[/b][/color][color=#191970][b]deleteVehicle[/b][/color] [color=#8B3E2F][b]([/b][/color][color=#000000]_this[/color] [color=#191970][b]select[/b][/color] [color=#FF0000]0[/color][color=#8B3E2F][b])[/b][/color][color=#8B3E2F][b];[/b][/color] [color=#1874CD]_task[/color] [color=#191970][b]setTaskState[/b][/color] [color=#7A7A7A]'Succeeded'[/color][color=#8B3E2F][b]}[/b][/color][color=#8B3E2F][b]][/b][/color][color=#8B3E2F][b];[/b][/color][/color] Kudos to Killzone_Kid for his SQF to BBCode Converter. I'm sorry for my stupidity, but where do I put this command? In a trigger, or should I make a .sqf file? If you can teach me, like cake recipe, I thank you. Share this post Link to post Share on other sites