Page MenuHomeFeedback Tracker

drawLine works only with editor preview - not when run as a scenario
New, WishlistPublic

Description

I am making a mission where I try to draw lines on the in-game map, but nothing is drawn. The script is similar to the drawLine example from the wiki.

(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw",
{
(_this select 0) drawLine [

		getPos player,
		[0,0,0],
		[0,0,1,1]

];
}]; {F24175}

Details

Legacy ID
2989906436
Severity
None
Resolution
Open
Reproducibility
Always
Category
Controls
Steps To Reproduce

Play the attached mission and open the in-game map. No blue line is drawn from the player position to origo.

Additional Information

If you unpack the pbo-file and preview the mission from the editor, then the line is drawn as expected.

Event Timeline

thor5viking edited Additional Information. (Show Details)
thor5viking set Category to Controls.
thor5viking set Reproducibility to Always.
thor5viking set Severity to None.
thor5viking set Resolution to Open.
thor5viking set Legacy ID to 2989906436.May 7 2016, 6:51 PM