Stop on semaphore
#1

As i see in the Taxi Script as default example in the server folder, if a bot capt a player near his radious, NPC will stop.

Is there a way for stop it on traffic lights? I try and i see on the forum that traffic lights are sync, so can be a good idea for a real traffic with bots
Reply
#2

They are synced, but it's not possible to get their state.
Reply
#3

Yea they are synced: Synced traffic lights
Reply
#4

can be added? xD
thanks developers
Reply
#5

the only thing i could think of is a timer on every trafic light and just do is player in area on that trafic light and if they leave within the timer you can do what u want to them
Reply
#6

well
GetPlayerLightsState(playerid,nearestlights,state) ;
GetPlayerNearestLightsState(playerid,state);//nearestlights limited to 10 meters xD
would be cool.. but u must know lights can be destroyed when u drive into them with a vehicle ,so there has to be a check if the lights exists into the point.. sure we can list all positions of lights but what if they are destroyed?
Reply
#7

yes, can happend. But sometimes, one player destroy it and when return it is not destroyed...
for this reason, lights animation continue also if semaphore is destroyed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)