![]() |
I need NPC help
does anybody know how to make a NPC repeat its action? I want someone to tell me how to make a NPC repeadly shoot cannonballs.
|
1 word
WHILE
|
Here is an example =)
NPC Code: |
'for' loops are fun.
|
Some time ago I have seen a functions loop... but it only worked for the leader:
NPC Code: U shouldn't use it but it's possible too ;) |
whats going to be new with the new engine??
|
Quote:
|
will you be able to send things to functions
like fname(value1,value2) |
arg, your mins are so much more complex then mine >.<
|
Quote:
|
o man
*tries to contain self* this is going to be so great, i cant wait |
Stefan scares me ...
But these new engine stuff, sounds very nice, hopefully there will be more easier ways for storing values on the server then server.strings ... |
Quote:
|
Well,
Ipersonally think that its pretty retarded to send values thru functions, its trendy, and you could just use triggeractions. Also, that could screw up the scope, and like I personally hate non-global scope, like PHP. Its just pointless... Also this: NPC Code: is to: NPC Code: Mmmmmmmmmmmm....global scope. Bootiful. |
I want to be helpfula dn help people make the new scripting engine, but i can't seem to work my way to the top...:-/. O well i can reccommend here...
|
Quote:
But I know that it is good in stuff like Standard C. I understand it is helpful, and there are good points to it, I was just pointing out that you can do it already. It does lead to fewer conflicts, and it is indeed more efficient, but what i was saying is that it can be done as is. I do see the difference and it is not fair to immediatly assume otherwise. |
-=Josey=-
That would own, you could shorten code by a lot! function message(text,timeammount){ message text; sleep timeammount; message ; } if (playertouchsme){ message(hi there,10); } If this is how it's going to work, I'll be most delighted. ;D |
Quote:
|
This sounds awsome you will be able to own in graal but im putting just about all of my money on this that all the good script commands that let you do anything neto will be DUN DUN DUN !!! P2P!!!!!!
|
Quote:
|
Isn't that overloading?
NPC Code: yes it is. :) |
Quote:
|
| All times are GMT +2. The time now is 02:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.