Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, JeyKey II), 28,995 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Models and commands #220711
08/08/08 17:38
08/08/08 17:38
Joined: Dec 2007
Posts: 69
Kasey_Dee Offline OP
Junior Member
Kasey_Dee  Offline OP
Junior Member

Joined: Dec 2007
Posts: 69
How would I be able to attach different scripts to models.

Example. I have a shader script and an NPC I wish to have an AI script attached to. Is there a way to assign both to the one model?

Re: Models and commands [Re: Kasey_Dee] #220713
08/08/08 17:42
08/08/08 17:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Just combine both of your scripts into one action, and then apply it to the model.

Re: Models and commands [Re: DJBMASTER] #220715
08/08/08 17:49
08/08/08 17:49
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
if you want to keep it seperate for gerenic use, just call the one action from the other

Code:
action actShader{
...
}

action actNPC{
actShader;
...
}


hope this helps


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1