Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 17,416 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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