Animationscript rejects randomvalues?

Animationscript rejects randomvalues?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Animationscript rejects randomvalues?

Post by PicassoCT »

Well i try to put a function inside a function

For example

Turn (blabla, x_axis,math.rad(random(23,25)),3)

This is constantly rejected. Why no recursing? Forbidden, or am i doing it wrong? Calling a function to deliver a value, and then setting the very same into the Turn Comando works perfectly. So no real problem, just wonderin...
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Animationscript rejects randomvalues?

Post by knorke »

random -> math.random
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Animationscript rejects randomvalues?

Post by PicassoCT »

yeah, thats a typo, if you look out of the window, thats a typo, if you look on my sandals, you get typoed..
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Animationscript rejects randomvalues?

Post by knorke »

Post Reply

Return to “Lua Scripts”