Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | chip programmers | 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