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
-
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
-
Resxt Is it lua or gsc?
-
Its GSC
-
Oh ok some of the funtions didnt work
-
avatar kora Take a look at my version of the mod.
https://github.com/Chenterito/gunrotationiw5 -
Kalitos Thanks you were helping me in discord