Can you do this: Debug.SendAnimationEvent(target, "MyStr

Post » Thu Jun 21, 2012 8:10 pm

What would be the fast (fast running script) way to send a random attack animation to the player?

Can you use strings in this way (pseudo code) :

int rannum = randomint(1, 3,)

string MyStringVar = "attackBackward"

if rannum = 1
MyStringVar = "attackforward"
elseif rannum = 2
MyStringVar = "attackleft"
else
MyStringVar = "attackright"
endif

Debug.SendAnimationEvent(target, "MyStringVar")
User avatar
Emily abigail Villarreal
 
Posts: 3433
Joined: Mon Aug 27, 2007 9:38 am

Post » Fri Jun 22, 2012 2:17 am

You would probably type the last line without the quote marks since you're referencing a variable.
User avatar
Steve Bates
 
Posts: 3447
Joined: Sun Aug 26, 2007 2:51 pm


Return to V - Skyrim