Trigger script when map is entered (triggered by actor)

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
vlastan
001 Subscriber
 
Joined: Fri Jun 24, 2016 4:51 am

Trigger script when map is entered (triggered by actor)

Postby vlastan » Sun Dec 03, 2017 3:37 pm

Hi! I need some help with a script.
I have an actor that must execute a script every time the players enters its map.
The "loaded" trigger works fine with non persistent maps, but i need the script to be triggered in persistent maps too, and when the map is already loaded that trigger won't work anymore.
Anyone has some tips?

User avatar
Mike
001 Co-Founder
 
Joined: Sun May 08, 2005 1:29 pm
Location: Ontario, Canada

Re: Trigger script when map is entered (triggered by actor)

Postby Mike » Mon Dec 04, 2017 9:59 am

I suggest using an "Actor Loop" and doing your scripting there.

vlastan
001 Subscriber
 
Joined: Fri Jun 24, 2016 4:51 am

Re: Trigger script when map is entered (triggered by actor)

Postby vlastan » Mon Dec 04, 2017 11:05 am

Mike wrote:I suggest using an "Actor Loop" and doing your scripting there.

In the "player enters" trigger of the map?


Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron