Sign in to follow this  
Followers 0
Santa

Delete marker problem

3 posts in this topic

Piece of code.

//DEBUG MARKER
if(_DebugMode) then {
	_marker = "ZONE";
	debugMarker = createMarker [
		_marker,
		_position
	];
	_marker setMarkerColor "ColorRed";
	_marker setMarkerText _marker;
	_marker setMarkerType "hd_objective";
//END DEBUG MARKER
};

Bla bla, do stuff, more code, bla bla

//DEBUG
if(_DebugMode) Then {
	deleteMarker _marker;
};

Marker does not get deleted, am I missing something?

Share this post


Link to post
Share on other sites

That returns errors.

15:07:21   Error deletevehicle: Type String, expected Object

Marker still staying on the bloody map :/

 

EDIT: solved it.

deleteMarker _marker; doesn't seem to work since the _marker value has poofed away.

deleteMarker "ZONE"; works fine on the otherhand.

Magic!

 

Edited by Santa

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.