IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Traffic Light Control

 
Adolf95  
Posted: Monday, Jun 11 2012, 10:48
Quote Post


Rat
Group Icon
Group: Members
Joined: Nov 11, 2009

my.gif

XXXXX



I've been looking around for a mod that allows you to change traffic lights from red to green and vice versa.Unable to find any form of it I decided to make my own.Right now what tools I've needed,and where's the tutorial for scripting?
PM
  Top
 

 
LMS  
Posted: Monday, Jun 11 2012, 11:46
Quote Post


Punk-ass Bitch
Group Icon
Group: Members
Joined: Jun 30, 2005

gr.gif

XXXXX



That's not possible via scripting. There are only 2 global states of traffic lights and these states are returned by two internal functions. You have to hook these functions and make them return your wished value. Note that this requires some skills in reverse engineering and c++ and can't just be done by using a script function. This is how it can look in game - if you succeed: http://www.imagebanana.com/view/emjigpb9/trafficlights.jpg I will not provide you with the full code nor give away any functions but if you have specific questions and make an effort, you can be sure I'll help you.
PM
  Top
 

 
Adolf95  
Posted: Monday, Jun 11 2012, 14:35
Quote Post


Rat
Group Icon
Group: Members
Joined: Nov 11, 2009

my.gif

XXXXX



awww...I thought I can bring back the "all traffic light turns green" cheat from San Andreas.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG