Quote:
|
Originally Posted by KuJi
Then is their anyway I can do it as how I am trying to?
I am trying to make it do like this:
if (strequals(#p(0),stats)) {
if (strequals(#p(1),hurt)) // Hurt
}
How would I do something like that in gscript2 then?
|
NPC Code:
function onActionServerside() {
if (params[1] == "stats") {
if (params[2] == "hurt") {
//stuff
} else if (params[2] == "stuff") {
}
} else if (params[1] == "stuff") {
}
}