Advertisement
scroton

zand a_setscale workaround

Nov 19th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //acs
  2. script 1 (int Xscale, int Yscale)
  3. {
  4. if (Xscale == 0 & Yscale == 0){ PrintBold(s:"Add arguments dummy"; Terminate; }
  5. if (Yscale == 0){ Yscale = Xscale; }
  6. SetActorProperty(0,APROP_ScaleX,Xscale);
  7. SetActorProperty(0,APROP_ScaleY,Yscale);
  8. }
  9.  
  10. //decorate
  11. //Can't pass fixed point through script arguments, so just multiply the fixed point by 65536
  12. //For instance, below, the arguments passed are equivalent to Xscale of 1.5 and Yscale of 0.5
  13.  
  14. actor SomeActor
  15. {
  16. States
  17. {
  18. GetStretched:
  19. TNT1 A 0 ACS_ExecuteWithResult(1,98304,32768)
  20. Goto See
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement