![]() |
does triggerserver work in classes? (originally named "does...")
does triggerserver work in classes?
something really simple like this doesn't even work so I'm assuming it doesn't work in classes :X PHP Code:
|
where is this class joined?
|
PHP Code:
Edit: Neo also has a valid point. If it's joined into a weapon, it should work. |
in a level
I'm assuming I have to use triggeraction instead because of that? ohi crow, didn't see your post yet |
Yes, it works if you triggeraction with a seperate name then ServerSide (onActionServerSide will not work). For ones that are joined to NPCS/Weapons, triggerserver will work fine.
Also, you should use name instead of this.name, there are cases when it will return something invalid, or so I have been told. Someone feel free to correct me. |
Quote:
|
Quote:
|
Quote:
I'm just going to use name since it is less typing ... |
I said that in Sidney's post. You should avoid this.name in most cases and use either thiso.name or just plain name as this.name might be overridden by a function call by another object. Only really matters with public functions and function calls inside a with block though.
|
me? i did not post
|
Quote:
|
oh ok!!! :):):)
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.