Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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