Raviar Posted June 12, 2024 Posted June 12, 2024 (edited) Thanks in adv for going through this scripting debugging. I have the below code which is part of the larger code: local targetPoint2d = {} targetPoint2d.x = targetPoint.x targetPoint2d.y = targetPoint.z local fireTask = { id = 'FireAtPoint', params = { point = targetPoint2d, radius = 3000, expendQty = 10, expendQtyEnabled = true } } local groupName = spawnedGroup:GetName() spawnedGroup:OptionROEWeaponFree() Group.getByName(groupName):getController():pushTask(fireTask) local spawnMarkPointText = "RED Artillery has spawned in " .. selectedRedZone:GetName() trigger.action.markToAll(10, spawnMarkPointText, spawnPoint, true) local targetMarkPointText = "RED Artillery is targeting " .. nearestBlueZone:GetName() trigger.action.markToAll(11, targetMarkPointText, { x = targetPoint.x, y = 0, z = targetPoint.z }, true) local redZoneName = selectedRedZone:GetName() local blueZoneName = nearestBlueZone:GetName() MESSAGE:New("Spawning RED Artillery in zone: " .. redZoneName .. " and targeting blue zone: " .. blueZoneName .. " Artillery Group Name is: " .. groupName .. " Target point is: x=" .. targetPoint.x .. ", y=" .. targetPoint.y .. ", z=" .. targetPoint.z, 10):ToAll() The marker appears as well as the messages and arti group, but they dont start firing! and the target point is within a range. any idea how can I debug this ? Edited June 17, 2024 by Raviar
Recommended Posts