Page MenuHomeFeedback Tracker

Mines Cannot be Spawned Using a Script
Closed, ResolvedPublic

Description

here is my script ... I know its not the trigger or the marker that is at fault.
and I know there is a mine placing module... but I want to place mine using a script.
op5m1 = createVehicle ["APERSMine", getMarkerPos "apers1",["apers1"], 0,"NONE"]; // APERSMine
op5m2 = createVehicle ["APERSBoundingMine", getMarkerPos "apers1",["apers1"], 0,"NONE"];
op5m3 = createVehicle ["APERSTripMine", getMarkerPos "apers1",["apers1"], 0,"NONE"];
op5m4 = createVehicle ["ATMine", getMarkerPos "apers1",["apers1"], 0,"NONE"];
op5m5 = createVehicle ["SLAMDirectionalMine", getMarkerPos "apers1",["apers1"], 0,"NONE"];
op5m6 = createVehicle ["UnderwaterMine", getMarkerPos "apers1",["apers1"], 0,"NONE"];

Details

Legacy ID
4131002201
Severity
Minor
Resolution
No Bug
Reproducibility
Always
Category
Scripting

Event Timeline

GregSIG edited Steps To Reproduce. (Show Details)Mar 14 2013, 4:10 PM
GregSIG edited Additional Information. (Show Details)
GregSIG set Category to Scripting.
GregSIG set Reproducibility to Always.
GregSIG set Severity to Minor.
GregSIG set Resolution to No Bug.
GregSIG set Legacy ID to 4131002201.May 7 2016, 12:35 PM

Thanks this works fine
op5m3 = createMine ["APERSTripMine", getMarkerPos "apers1",["apers1"], 0];

still cant change the direction of the tripwire using azumuth... the tripwire always faces East :(

You could also use the Mines Module found in Sites in the editor :)