Post your scripting questions / solutions here
Moderator: Moderators
knuko
Lance Corporal
Posts: 19 Joined: Tue Feb 15, 2005 10:20 am
Post
by knuko » Wed Feb 16, 2005 2:55 pm
Hey, i gonna learn scripting
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Wed Feb 16, 2005 3:52 pm
you dont set a TIKI in a script, you set that in a different pk3 in main. main>models>weapons>.tik
but you should put it in a pk3 for organization and releasing reasons
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
knuko
Lance Corporal
Posts: 19 Joined: Tue Feb 15, 2005 10:20 am
Post
by knuko » Wed Feb 16, 2005 4:18 pm
Hey, i gonna learn scripting
Green Beret
Major General
Posts: 746 Joined: Mon Apr 19, 2004 12:21 pm
Contact:
Post
by Green Beret » Wed Feb 16, 2005 6:28 pm
if your wanting to add grenade ammo boxes on the map,just spawn them
Code: Select all
level waittill spawn
//ammo_box-----------------------------------------------------------------
local.ammo_box = spawn script_model targetname grenade_ammo
local.ammo_box model "models/items/item_grenade_ammobox.tik"
local.ammo_box.origin = ( xxx.xx xxx.xx xxx.xx ) //<--coords
local.ammo_box.angles = ( 0 0 0 )
end
if not,edit the shader/tik file that deals with grenades and put it in a folder named exactly what the file name you editing is.and you just cant stick it in the main folder and hope it works.
main>models>weapons>nameoftik.tik
whats the name of the .tik your editing ?
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Wed Feb 16, 2005 10:36 pm
i think he just wants to place a grenade somewhere,
Code: Select all
spawn item/ammobox/grenade.tik "origin" "x y z"
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Wed Feb 16, 2005 10:52 pm
yes. it sets all params to default, origin to 0 0 0, angles to 0 0 0, $targetname to whatever it is, liek t1 t2 t3 and all that.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544 Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States
Post
by Master-Of-Fungus-Foo-D » Wed Feb 16, 2005 10:56 pm
so if you dont specify the $targetname of an entity you spawn, and there are no other enities in the map, the things $targetname is $t1?
Rookie One.pl
Site Admin
Posts: 2752 Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:
Post
by Rookie One.pl » Thu Feb 17, 2005 12:12 pm
Nah, if you don't set a targetname yourself the entity just doesn't have it.