View Single Post
  #2  
Old 01-14-2010, 09:44 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Yes and no, to answer the question in the thread title. Classes can also be joined to weapons, so theoretically, it works in classes. But it doesn't in level NPCs. You will have to do something along the lines of this:

PHP Code:
function onActionExample()
  echo(
"I was triggered on the serverside!");

function 
onCreated()
  
setShape(13232);

//#CLIENTSIDE
function onCreated() {
  
setShape(13232);
  
triggerAction(this.xthis.y"Example"nil);

There are important things to note though:
- you need a shape on the serverside (I usually add the same on the clientside too)
- the action may not be named "Serverside" or "Clientside", that won't work
Reply With Quote