Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Enable A Certain Weapon... (https://forums.graalonline.com/forums/showthread.php?t=16102)

Vinvect 11-04-2001 02:13 AM

Enable A Certain Weapon...
 
how do i only enable a certian weapon? just like engima's bomber game, u can only use a certain weapon. how do i do this?:o

Xaviar 11-04-2001 02:14 AM

Re: Enable A Certain Weapon...
 
Quote:

Originally posted by Vinvect
how do i only enable a certian weapon? just like engima's bomber game, u can only use a certain weapon. how do i do this?:o
Just use a flag to disable all the weapons except one, or use a keydown

Vinvect 11-04-2001 02:15 AM

Re: Re: Enable A Certain Weapon...
 
Quote:

Originally posted by Xaviar


Just use a flag to disable all the weapons except one, or use a keydown

?

Xaviar 11-04-2001 02:16 AM

Re: Re: Re: Enable A Certain Weapon...
 
Quote:

Originally posted by Vinvect

==========================
I Script Really Good
&
Looking For A NAT Job
==========================

:rolleyes:

Vinvect 11-04-2001 02:18 AM

who?die?who?die?who?die?blah?me?blah?me?uhh?uh?uhh ?uh?uhh?uh?shut?up?shut?up?shut?up

Xaviar 11-04-2001 02:21 AM

Quote:

Originally posted by Vinvect
who?die?who?die?who?die?blah?me?blah?me?uhh?uh?uhh ?uh?uhh?uh?shut?up?shut?up?shut?up
I still can't quite get over the fact that you tried to get on to Babylon as a NAT...

Loriel 11-04-2001 02:33 AM

Re: Enable A Certain Weapon...
 
Quote:

Originally posted by Vinvect
how do i only enable a certian weapon? just like engima's bomber game, u can only use a certain weapon. how do i do this?:o
NPC Code:
if (playerenters) {
timereverywhere;
disableweapons;
timeout = 0.05;
}
if (timeout) {
if (strequals(#w,weapon name goes here) && keydown(4) && playerfreezetime<=0 && !possible other stuff that should not allow the player to use his weapons)
callweapon selectedweapon,weaponfired;
timeout = 0.05;
}



If it's for a p2p server with NPC server, don't put timereverywhere in there, but put //#CLIENTSIDE above the first line.


All times are GMT +2. The time now is 02:10 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.