Jump to content
Guest Bombyx

Test quickly a script

Recommended Posts

Guest Bombyx

ok thanks.

And someone know if it's possible to modify traffic lights during game through a script ? or the game doesn't manage traffic lights through scripts ?

is it possible through this command : void EnableTrafficLight(TrafficLightType type_); to switch red/yellow/green a traffic light when I click on it with a script ? if it's possible, i'll try to make a script...

Link to comment
Share on other sites

ok thanks.

And someone know if it's possible to modify traffic lights during game through a script ? or the game doesn't manage traffic lights through scripts ?

is it possible through this command : void EnableTrafficLight(TrafficLightType type_); to switch red/yellow/green a traffic light when I click on it with a script ? if it's possible, i'll try to make a script...

The game uses another code to make the traffic lights work. You can find out about that in this topic. But if you rename the traffic lights in the propreties screen in the editor you can use that name in the script you want to make. I really don't know how to script what you want, so I'll leave it at this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...