scripting reference

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
krang
Private
Posts: 3
Joined: Mon Mar 17, 2003 9:03 am

scripting reference

Post by krang »

I am pretty new scripting and I was wondering if there is sort of a scripting refernce list. Like say I want to start a player off with the m1garand and clip of the ammo for it I would put
$player item weapons/m1garand.tik
$player ammo "?"

but I don't know what to put for the ammo because I don't know what it's called.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Should be:

$player item weapons/m1_garand.tik
$player ammo rifle 1000
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yup. Use the 'weaponclass' variable as defined in the weapon's TIKI.
Image
Post Reply