Page 1 of 1

Adding Weapons in Single Player??

Posted: Fri Jun 06, 2003 4:29 am
by aLpHa2
Ok i follow a tutorial that is SP and its a combined tut on destroying flak88 rondevouzing with ur allies and fighting off tanks. but the only thing is that i cant spawn with weapons. i am using Spearhead. ok i put this into my script just like it tells me too. i got the tut from the Spearhead SDK tuts.
this is what i put


//---------------------------------------------------------------------------------------------------------------------------------
InitPlayer:
//---------------------------------------------------------------------------------------------------------------------------------
//setup our player with weapons
$player takeall
$player item weapons/Webley_Revolver.tik
$player item weapons/enfield.tik
$player item weapons/sten.tik
$player item weapons/mills_grenade.tik
$player item weapons/M18_smoke_grenade.tik

// give him some ammo
$player ammo pistol 48
$player ammo smg 168
$player ammo rifle 80
$player ammo smokegrenade 3
$player ammo grenade 3

// start out using the smg
$player useweaponclass smg

// give him binoculars and the explosive icon...
$player item items/binoculars.tik


yet when i start out i dont spawn with anything
and im thinking that putting the $ before player is making it not work

Posted: Fri Jun 06, 2003 8:44 am
by Zip
In a battle never ever look back. If you ever need help drop but dont stop. Keep going! A battle is not won over the luck if you shoot someone or if they shoot you its about the men beside you. They help you, they put pride in you, and they guide you.

This is to my Bro that was lost in Desert Storm.
That is deep. Sorry to hear that.

As for your SP problem, did you put your script in the same location as your .bsp? I don't know about SP, but if you make a multiplayer map your script must be in the same place as your .bsp (i.e. if your .bsp is in mainta\maps\dm then your script should be there too)

Hope that helps :)

Posted: Fri Jun 06, 2003 10:27 am
by mohaa_rox
so for SP, just place it in mohaa\mainta\maps

Posted: Fri Jun 06, 2003 1:32 pm
by bdbodger
for the binoculars you can use

waitthread global/items.scr::add_item "binoculars"

That will put the binoculars on the hud for you . The rest look ok to me .