spawning a corona

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

spawning a corona

Post by lizardkid »

Well, i never thought i'd ask something like this, but why doesn't this REALLY basic spawn script work?

The thread:

Code: Select all

flashstick local.flashORIGIN:
// for dev purposes, makes a corona at places to indicate visually that something has happened, or is happening.

spawn fx/corona_red.tik "$targetname" "flashstick" "origin" "local.flashORIGIN"

wait 10

if(isalive $flashstick)
{$flashstick remove}

end
the call to it

Code: Select all

thread flashstick $player.origin
and it just spawns it at 0 0 0... it spawns it fine but it spawns at the wrong coords, in console it says it was spawned as an Objectt entity, i don't know what else i could have done :S

i woulkd have liked a small flare but this was as good as i could do with normal fx :D
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Re: spawning a corona

Post by Rookie One.pl »

Code: Select all

flashstick local.flashORIGIN:
// for dev purposes, makes a corona at places to indicate visually that something has happened, or is happening.

spawn fx/corona_red.tik "$targetname" "flashstick" "origin" "local.flashORIGIN"

wait 10

if(isalive $flashstick)
{$flashstick remove}

end
Remove the quotation marks from local.flashORIGIN.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

test_pointer

Post by tltrude »

Here is how I did it for the rockets in "test_pointer".

level.coron3 = spawn script_model model "fx/corona_red.tik" scale ".25"
level.coron3.origin = $r1_launch.origin + ( -4 0 0 )
level.fire1 = spawn script_model model "static/corona_orange.tik" scale "2.0"
level.fire1.targetname = "fire1"
level.fire1.origin = $rocket1.origin + ( 0 0 -8 )
$fire1 bind $rocket1
$rocket1 playsound steam_snd
$rocket1 light 1 .8 .6 300

The small red corrona is for the button that launches the rocket. The orange one is for the tail of the rocket as it takes off. The rocket also lights up the ground as it goes, using a dynamic light (last line).

Notice how the origins can be adjusted using + ( x y z ) numbers.
Tom Trude,

Image
Post Reply