Search the Community
Showing results for tags 'forall'.
-
Download this, put all files to CLEO folder. In script, use directive $I with one of names: {$I forallcars}{$I forallpeds}{$I forallobjs}{$I forallpickups}{$I forplayercar}{$I fornearestcar}{$I fornearestped}{$I fornearestobj}before the code, and {$I for_end}at the end.In the code, use vehpedobjpickto do something with entity. Notice, in the code you can't use [email protected], [email protected] and [email protected] variables PS ^ "code" means code between {$I for...} and {$I for_end} Examples. Creating light shadow under all cars. {$CLEO}0000:while true wait 0 {$I forallcars} car.StorePos(veh, [email protected], [email protected], [email protected]) 016F: create_shadow 3 rotation 0.0 size 2.0 intensity 100 RGB 255 0 0 XYZ [email protected] [email protected] [email protected] {$I for_end}endDestroing all pickups. {$CLEO}wait 5000{$I forallpickups} 0215: destroy_pickup pick{$I for_end}0a93: DOWNLOADPS small but useful, I think.
- 15 replies