Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- llStopSound();
- llSetTimerEvent(0.01);
- }
- timer()
- {
- if (llGetAgentInfo(llGetOwner()) & AGENT_WALKING)
- {
- state walking;
- }
- }
- }
- state walking
- {
- state_entry()
- {
- llSetTimerEvent(0.2);
- llLoopSound("25dd35f8-cf05-df30-47cc-a51a22916f0a",1.0);//Walk
- }
- timer()
- {
- if (!(llGetAgentInfo(llGetOwner()) & AGENT_WALKING))
- {
- state default;
- }
- if(llGetAgentInfo(llGetOwner()) & AGENT_FLYING )
- {
- llLoopSound("cf6d864b-b642-60a3-0a3c-83d15bf099ea",1.0);//Flying
- state flight;
- }
- }
- }
- state flight
- {
- state_entry()
- {
- llSetTimerEvent(0.2);
- llLoopSound("cf6d864b-b642-60a3-0a3c-83d15bf099ea",1.0);
- }
- timer()
- {
- if (!(llGetAgentInfo(llGetOwner()) & AGENT_FLYING))
- {
- //state default;
- state flight;
- llLoopSound("7133a677-415c-c180-e83d-b26aa28a2d3d",1.0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement