Quote:
|
Originally Posted by ZeroTrack
dont use function , to do that in must be serverside, instead of calling the function triggeraction to serverside and put everything in that function in serverside
PHP Code:
if(actionserverside){
if(strequals(#p(0),baddy)){
putnpc2 xy,y,{
join temporary;
join baddy
};
with(npcs[npcscount-1]){
setstring this.type,#s(thiso.type);
setstring this.owner,Baddy;
}
}
}
//#CLIENTSIDE
// 0,0 was used not know weather it was a weapon or local npc
if(created) triggeraction 0,0,serverside,Baddy Placer,baddy;
|
It's not clientside it is all serverside.
There is no client activity involved other than...
The only flags used are (created) (playerenters) and (timeout) and vars used , playercount in the level, timeout.
It isn't in a function inside the actual NPC, the script is inside of a timeout , and doesn't use any functions or triggeractions.
The function above was an example rather than showing
if (playerenters||timeout) {} and going through the trouble of adding timeout = ect.... because the problem was not / is not located there it is rather the fact that with(npcs[npcscount-1]){ is not working ahead of the (created) of the newly placed npc.... (everything else i said above)
However I don't see how it being a function has anything to do with it ??