Give weapons commands?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
carlpenn
Lance Corporal
Posts: 23
Joined: Wed Nov 13, 2002 12:16 pm

Give weapons commands?

Post by carlpenn »

Using Spearhead how do I Give the UK Paratroopers "British" weapons? when I run the Map they all have M1 Garands which looks out of place.
I have tried using the Default and None option in Radiant and then using the below command in the script:-

Initfriends:

level.friendly1.targetname = Captain_Harris
level.friendly2.targetname = Corporal_Jones
level.friendly3.targetname = Private_Smith
level.friendly4.targetname = Private_Jenkins
level.friendly5.targetname = Private_Johnson
level.friendly6.targetname = Private_Dawson
level.friendly7.targetname = Private_Daniels

level.friendly1.maxhealth = 500
level.friendly1.health = 500
level.friendly2.maxhealth = 500
level.friendly2.health = 500
level.friendly3.maxhealth = 500
level.friendly3.health = 500
level.friendly4.maxhealth = 500
level.friendly4.health = 500
level.friendly5.maxhealth = 500
level.friendly5.health = 500
level.friendly6.maxhealth = 500
level.friendly6.health = 500
level.friendly6.maxhealth = 500
level.friendly6.health = 500


level.friendly1 gun sten
level.friendly2 gun enfield
level.friendly3 gun enfield
level.friendly4 gun sten
level.friendly5 gun sten
level.friendly6 gun enfield
level.friendly7 gun enfield



thread FriendWait

end

But it doesnt work !! I thought it should do as I found it in the PK3 files of Spearhead. Can anyone tell me how to do this as I am sure it is possible.
Any suggestions????????
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I think you have to use the weapon name as listed in its tiki:

level.friendly1 gun "Sten Mark II"
level.friendly2 gun "Lee-Enfield"
carlpenn
Lance Corporal
Posts: 23
Joined: Wed Nov 13, 2002 12:16 pm

Post by carlpenn »

Ok I tried it as shown above and it still didnt work.
Is there any other way?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use the weapon command and supply the name as in global/weapon.scr:

$guy weapon "m1 garand"

I don't know the names for spearhead weapons :(
Image
Post Reply