Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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