Cant spawn anything in Spearhead!
Moderator: Moderators
Cant spawn anything in Spearhead!
Help me please! I use script files to usually spawn things in Allied Assault, but it wont work for me in Spearhead. Can someonetell me how to correctly spawn thingts in Spearhead and give me a spawn list? Im sorry but i am kinda new at this.
Thanks,
meowmix11
Thanks,
meowmix11
there's a thing i usually use in SH from script that's slightly mrore advanced but faster, you don't use actors but you probably want a trigger with setthread. put this line in the thread you setthread...
spawn models/human/german_panzer_shutze.tik // after this you can add //stuff like origin and gun that you normally fnd in AI properties.
so, if you wanted to spawn a shutze as such at 10 10 10 (x y z axis) with a mp40, youd place this total.....
spawn models/human/german_panzer_obershutze.tik "gun" "mp40" "origin" "10 10 10"
sorry if that exceeded lines....
if you need more clarity let me know...
spawn models/human/german_panzer_shutze.tik // after this you can add //stuff like origin and gun that you normally fnd in AI properties.
so, if you wanted to spawn a shutze as such at 10 10 10 (x y z axis) with a mp40, youd place this total.....
spawn models/human/german_panzer_obershutze.tik "gun" "mp40" "origin" "10 10 10"
sorry if that exceeded lines....
if you need more clarity let me know...
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
There should be one 'main' script: mymapname.scr, then there is a precache script: mymapname_precache.scr, the latter is used to precache models and such, and the first is where your scripting goes, so to answere your question, it needs to go in the mymapname.scr.meowmix11 wrote:do i put this in the main map script or in a secondary map script file? help me please im really confused.
so, if i wanted to spawn a crate in a map, i would put the script in the mymapname.scr?
for example, where would i put this:
local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 90 0 )
local.static solid
for example, where would i put this:
local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 90 0 )
local.static solid
well of course you should change 'mymapname' to whatever it is.
I think this is right:
I think this is right:
Code: Select all
level waittill prespawn
local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 90 0 )
local.static solid
level waittill spawn
i tried this and put tho origin where i wanted it, but it did not spawn.blue60007 wrote:well of course you should change 'mymapname' to whatever it is.
I think this is right:
Code: Select all
level waittill prespawn local.static = spawn script_model local.static model "static/indycrate.tik" local.static.origin = ( -591.85 -647.96 668.13 ) local.static.angles = ( 0 90 0 ) local.static solid level waittill spawn
Let's try this:meowmix11 wrote:blue60007 wrote:Maybe try putting it after the waittill spawn, no the coords (vector) are the same in SH. We need a pro here to confirm this.
nope, still dosn't work
Code: Select all
level waittill spawn
thread spawncrate
spawncrate:
local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -591.85 -647.96 668.13 )
local.static.angles = ( 0 90 0 )
local.static solid
end
blue60007 wrote:Let's try this:meowmix11 wrote:blue60007 wrote:Maybe try putting it after the waittill spawn, no the coords (vector) are the same in SH. We need a pro here to confirm this.
nope, still dosn't work
Anyone for suggestions?Code: Select all
level waittill spawn thread spawncrate spawncrate: local.static = spawn script_model local.static model "static/indycrate.tik" local.static.origin = ( -591.85 -647.96 668.13 ) local.static.angles = ( 0 90 0 ) local.static solid end
nope

