Advertisement
RA2lover

100 chip drag test scenario

May 24th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. sforce = 0 --change this in multiples of 100*iforce. this force gets added to all of the chips
  2. iforce = 1000
  3.  
  4. function force()
  5. for n=0,100 do
  6. _WARP(n,0,0,0) --teleports the chips to coordinates where floating point numbers are more accurate.
  7. _FORCE(n,0,sforce+(n*iforce),0) --applies that force to the objects.
  8. end
  9.  
  10. end
  11. function main()
  12. out(1,"Startforce - "..sforce)
  13. out(2,"Increment Force - "..iforce)
  14. out(3,"Make sure gravity is off.")
  15. force()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement