gun roate script IW5
-
Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;
init()
{
level thread onPlayerConnect();
level thread doInfo();
wait 1.0;
}onPlayerConnect()
{
for(;;)
{
level waittill( "connnected", player );
player thread onPlayerSpawned();
}}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}doinfo()
{
self endon("disconnect");
displayText = self createServerFontString( "objective", 0.8 );
i = 0;
for( ;; )
{
if(i == -1300)
{
i = 1300;
}displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106); displayText setText("Roating Gun 30 Seconds"); wait .03; i--; }}
-
what does roate mean?
-
Sorry I meant Rotate
-
Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;
init()
{
level thread onPlayerConnect();
level thread doInfo();
wait 1.0;
}onPlayerConnect()
{
for(;;)
{
level waittill( "connnected", player );
player thread onPlayerSpawned();
}}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}doinfo()
{
self endon("disconnect");
displayText = self createServerFontString( "objective", 0.8 );
i = 0;
for( ;; )
{
if(i == -1300)
{
i = 1300;
}displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106); displayText setText("Roating Gun 30 Seconds"); wait .03; i--; }}
avatar kora I don't have time to take a look at it right now but this could help you switching weapons
https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/replace_weapon_on_spawn -
ok thanks
-
avatar kora I don't have time to take a look at it right now but this could help you switching weapons
https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/replace_weapon_on_spawnResxt Is it lua or gsc?
-
Its GSC
-
Oh ok some of the funtions didnt work
-
Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;
init()
{
level thread onPlayerConnect();
level thread doInfo();
wait 1.0;
}onPlayerConnect()
{
for(;;)
{
level waittill( "connnected", player );
player thread onPlayerSpawned();
}}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}doinfo()
{
self endon("disconnect");
displayText = self createServerFontString( "objective", 0.8 );
i = 0;
for( ;; )
{
if(i == -1300)
{
i = 1300;
}displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106); displayText setText("Roating Gun 30 Seconds"); wait .03; i--; }}
avatar kora Take a look at my version of the mod.
https://github.com/Chenterito/gunrotationiw5 -
avatar kora Take a look at my version of the mod.
https://github.com/Chenterito/gunrotationiw5Kalitos Thanks you were helping me in discord
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login