TheDavenia
Member
Posts: 223
Threads: 38
Joined: Jun 2011
Reputation:
0
|
Need help on a code!
I know how to do this with scripts, but not with items.
How do I make it that if I pick up an item things get disabled and some get enabled?
Please help!
Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 11-05-2011, 06:43 AM by TheDavenia.)
|
|
11-05-2011, 05:19 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Need help on a code!
Void OnStart()
{
SetEntityPlayerInteractCallback("nameofitem", "nameoffunction", false);
}
void nameoffunction(string &in asEntity)
{
SetEntityActive("nameofentitytodisable/enable", true); \\true means enable, false means disable
}
(This post was last modified: 11-05-2011, 05:27 AM by flamez3.)
|
|
11-05-2011, 05:27 AM |
|
TheDavenia
Member
Posts: 223
Threads: 38
Joined: Jun 2011
Reputation:
0
|
RE: Need help on a code!
(11-05-2011, 05:27 AM)flamez3 Wrote: Void OnStart()
{
SetEntityPlayerInteractCallback("nameofitem", "nameoffunction", false);
}
void nameoffunction(string &in asEntity)
{
SetEntityActive("nameofentitytodisable/enable", true); \\true means enable, false means disable
} Yeah, only needed to know the VoidOnstart though
(11-05-2011, 05:28 AM)TheDavenia Wrote: (11-05-2011, 05:27 AM)flamez3 Wrote: Void OnStart()
{
SetEntityPlayerInteractCallback("nameofitem", "nameoffunction", false);
}
void nameoffunction(string &in asEntity)
{
SetEntityActive("nameofentitytodisable/enable", true); \\true means enable, false means disable
} Yeah, only needed to know the VoidOnstart though Worked thanks
Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 11-05-2011, 06:10 AM by TheDavenia.)
|
|
11-05-2011, 05:28 AM |
|