D.Kyle Posted October 30, 2018 Share Posted October 30, 2018 Hi, my question: How to get every car in sphere except current player car and store it into [email protected] I've this script but it alway included player car Quote actor.StorePos($PLAYER_ACTOR,[email protected],[email protected],[email protected]) 073E: get_car_in_sphere [email protected] [email protected] [email protected] radius 50.0 model -1 handle_as [email protected] any ideas to do this guys ? Thanks for your help Link to comment Share on other sites More sharing options...
In45do Posted October 30, 2018 Share Posted October 30, 2018 {$CLEO .cs} thread 'car in sphere' :S1 wait 0 00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected] 073E: get_car_in_sphere [email protected] [email protected] [email protected] radius 50.0 model -1 handle_as [email protected] if 056E: car [email protected] defined jf @S1 if 00DF: actor $PLAYER_ACTOR driving jf @Set_Car 03C0: [email protected] = actor $PLAYER_ACTOR car if 803B: not [email protected] == [email protected] // check if [email protected] is not player car jf @S1 :Set_Car // do something with [email protected] car Link to comment Share on other sites More sharing options...
D.Kyle Posted October 30, 2018 Author Share Posted October 30, 2018 6 minutes ago, In45do said: {$CLEO .cs} thread 'car in sphere' :S1 wait 0 00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected] 073E: get_car_in_sphere [email protected] [email protected] [email protected] radius 50.0 model -1 handle_as [email protected] if 056E: car [email protected] defined jf @S1 if 00DF: actor $PLAYER_ACTOR driving jf @Set_Car 03C0: [email protected] = actor $PLAYER_ACTOR car if 803B: not [email protected] == [email protected] // check if [email protected] is not player car jf @S1 :Set_Car // do something with [email protected] car Thanks mate ! you save me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now