![]() |
Questions about a Skateboard Class NPC
Control-NPC:
PHP Code:
PHP Code:
I need this because I don't want the skateboard to disappear after the player logs out while is on the skateboard. triggerserver gives an error too. |
PHP Code:
PHP Code:
Thinking about it, you should generally have the getting off the skateboard in the actual weapon, not a class... |
I can't even get on the skateboard now..
BTW ani = gs1 (#m). And yes, it does work. Its cause setani is clientside. Even though whats ur saying is true, if it works the 1st time, why shouldn't it work the 2nd time? BTW: The actual weapon, is just a blank putnpc2. |
because you needed to be standing near it to get off the skateboard, check your triggeraction.
you do have a strange way of making this a weapon i must say o-o |
I'm trying to make them like Era cars.
There seems to be nothing wrong with the triggeraction's arguments... It echoed: PHP Code:
PHP Code:
|
to destroy the putnpc2 once the player enters the car, then to create a new putnpc2 once the player leaves the car...
|
Yeah, thats what I'm doing, and it works now.
However, there's another problem: PHP Code:
so it only affects me? Like if there was only 1 board on the map it would be normal speed, 2 boards then 2x speed, 3 boards 3x speed, etc and so on. Also, this.owner seems to only work on the serverside. x.x. How do I access it on the clientside? |
by sending it through a trigger action.
the other people must have 'client.RideStatus = 1' in their flags. make sure you are resetting this flag to null on login maybe |
Yeah client.RideStatus is already set to NULL on login.
"by sending it through a trigger action" Send what, for what? |
"Also, this.owner seems to only work on the serverside. x.x. How do I access it on the clientside?"
|
What are this codes?
|
Quote:
Anyway, Sidney do you mean this? PHP Code:
|
no... as in triggerclient?
HTML Code:
triggerclient("weapon", "weaponname", params); |
Nevermind,.
|
Quote:
Also, please post your solution for others with similar problems. :) |
attr's never work for me, can you please show me a proper example script using attr's? BTW, it's solved anyway. My new problem is that when the NPC-Control won't send a triggerserver to one of my NPCs in the Weapon List, (I tried multiple times with echo). The reason I need the NPC-Control is because of the "function onPlayerLogOut(pl)" check. I need it so that the board isn't deleted when they player leaves while is on the board.
|
You won't be able to perform triggerserver on serverside ...
|
So how would I do this?
Script execution errors: Function putnpc2 not found at line 102 Why the hell isn't putnpc2 allowed? |
Is it on clientside?
putnpc2 is only serverside. |
It's on the Control-NPC, and no it's not clientside.
|
Control-NPC can't putnpc2 since it isn't in a level.
|
So should I use attrs or something?
Can u show me an example.. |
PHP Code:
|
Since I can't use putnpc2 on the NPC server, what should I do?
|
Quote:
|
| All times are GMT +2. The time now is 02:07 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.