Posts: 18
Threads: 6
Joined: Jul 2008
Reputation:
0
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
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
They are synced, but it's not possible to get their state.
Posts: 350
Threads: 126
Joined: Mar 2009
Reputation:
0
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
Posts: 1,047
Threads: 23
Joined: Jun 2009
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?
Posts: 18
Threads: 6
Joined: Jul 2008
Reputation:
0
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