Jump to content
__d0ct0r__

How to use inArea in an if statement

Recommended Posts

Hello, in my mission file script, i am wanting to run some code if the player is in a certain area (this area is a marker), doing

if (player inArea markerName) then {
	// code to be run
};

does nothing, could someone tell me how I can use inArea in an if statement, many thanks.

Share this post


Link to post
Share on other sites

Marker names are strings and so must be in quotes:

if (player inArea "markerName") then {
	hint "player is in area";
};
  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×