Changing player into item?
Moderator: Moderators
Changing player into item?
I have seen thid before in a server. When a player walked over a trigger, the player was turned into a toilet for 60 seconds. Can anyone tell me how to do this using triggers and scripts?
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
Post what you have in your script, I'll see if we can find the infinite loop...
This would cause an infinite loop:
This would print 'HI!' then go back to mythread and print 'HI!' again and keep repeating that forever and ever.
You could do this to loop it 10 times
That would print HI, x loops to go, while loopstogo is greater than zero and then subracts one from it. Then repeats the process over until loopstogo reaches 0
This would cause an infinite loop:
Code: Select all
thread mythread
mythread:
iprintln "HI!"
goto mytrigger
end
You could do this to loop it 10 times
Code: Select all
level.loopstogo = 10
thread mythread
mythread:
while (;level.loopstogo > 0; level.loopstogo--)
{
iprintln "HI!, " level.loopstogo " to go"
wait 1
goto mythread
end
}
end
