Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-14-2002, 10:26 AM
Twusk Twusk is offline
o.O
Join Date: Jun 2002
Location: California, USA
Posts: 57
Twusk is on a distinguished road
Send a message via AIM to Twusk
Passing variables to classes...

Alright, here's my problem...
I'm using a weapon with putnpc2 that is a "join class;" but I want to pass a variable to that class from the weapon, I know you can pass the variable from a weapon to putnpc2 through via
NPC Code:

putnpc2 x,y,{ message #v(this.test); join class; };
with (npcs[npcscount-1]) { this.test=3; }


but that variable (this.test) doesn't pass onto the class... and I want to know I can pass that variable onto the class. Can that be done?
__________________
</Twusk>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.