![]() |
NPC Question
I want to know how to make a script repeat itself...
i never ever knew how.....lol |
make it loop LOL
either use a for loop or a do loop or any other ones |
what is the script for the loop... there isn't anything in the commands
|
Quote:
DUH! its: while () { sleep 0.05; } |
actually do a timeout. it is the easiest. that way it does somthing everytime it times out ^_^
set the timeout to 1 then do the script and make it do the script everytime it timesout to 1. That would make it happen ever second. |
ok, i used that before, i just didn't do it right, but before that, wouldn't you use
timerteverywhere; |
depends..
if you are going to make something that keeps on acting while the player can do something else then make a timeout.. if it is just a code that needs to be runned once or when you fire the weapon or ''checks'' then do either a while or a for loop.. |
Errr the script for timeouts is just like
if (weaponfired) {timeout = 1;} if (timeout) {blah blah....blah blah....;} |
Quote:
|
| All times are GMT +2. The time now is 04:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.