News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 17th Feb 2006, 11:05 AM   #1
{WE}Blue
Registered User
 
Join Date: Feb. 16th, 2006
Posts: 24
First parameter in spawn() function?

What is it supposed to be?

I looked at http://udn.epicgames.com/Two/ActorFunctions#Spawn but i don't understand what the first parameter is supposed to be, there's no explaination.

Could someone just give me a couple examples of use of this function with all the optional parameters filled in?

Oh and as far as the context is concerned, I'm trying to spawn actor.navigationpoint.flagbase

i know this is a n00b question but please forgive me thanks

Last edited by {WE}Blue; 17th Feb 2006 at 11:06 AM.
{WE}Blue is offline   Reply With Quote
Old 17th Feb 2006, 11:10 AM   #2
Sir_Brizz
More Than Just Mad Skill
 
Sir_Brizz's Avatar
 
Join Date: Feb. 3rd, 2000
Location: >:3
Posts: 25,488
http://wiki.beyondunreal.com/wiki/Cr...rs_And_Objects
__________________
64 65 61 74 68 62 6f 6f 67 65 72 73 20 6d 6f 74 68 65 72 20 6f 66 20 63 6f 75 72 73 65

Liandri Archives - A veritable smorgasbord of information about the Unreal series
If Titanic taught me anything, it's to never let go until you're a frozen corpse staring hopelessly into a barren horizon.
Sir_Brizz is offline   Reply With Quote
Old 17th Feb 2006, 11:19 AM   #3
{WE}Blue
Registered User
 
Join Date: Feb. 16th, 2006
Posts: 24
Quote:
Originally Posted by Sir_Brizz
thanks

you wouldn't by any chance be able to show me an example of adding a flagbase at a specified location would you?
{WE}Blue is offline   Reply With Quote
Old 17th Feb 2006, 11:51 AM   #4
Sir_Brizz
More Than Just Mad Skill
 
Sir_Brizz's Avatar
 
Join Date: Feb. 3rd, 2000
Location: >:3
Posts: 25,488
I couldn't say exactly... I'm guessing something like:

myFlagBase = Spawn(class'x[Blue][Red]FlagBase',,,Location,Rotation);
__________________
64 65 61 74 68 62 6f 6f 67 65 72 73 20 6d 6f 74 68 65 72 20 6f 66 20 63 6f 75 72 73 65

Liandri Archives - A veritable smorgasbord of information about the Unreal series
If Titanic taught me anything, it's to never let go until you're a frozen corpse staring hopelessly into a barren horizon.
Sir_Brizz is offline   Reply With Quote
Old 17th Feb 2006, 11:58 AM   #5
{WE}Blue
Registered User
 
Join Date: Feb. 16th, 2006
Posts: 24
Quote:
Originally Posted by Sir_Brizz
I couldn't say exactly... I'm guessing something like:

myFlagBase = Spawn(class'x[Blue][Red]FlagBase',,,Location,Rotation);
well i just want it to be added to the map as soon as the map loads.

So first I run a conditional to check if the map is DM-Turbine

If the conditional is true, then it adds a red flag at loacation (-1520,-111,-192) and a blue flag at location (1215,-128,-79) with yaw pitch and roll all 0.

and can i just put this code in my gametype.uc class? I want the whole mod to only have 1 .u file.

oh and i should remind that this is for UT99

sorry i'm a total n00b
{WE}Blue is offline   Reply With Quote
Old 17th Feb 2006, 12:05 PM   #6
Sir_Brizz
More Than Just Mad Skill
 
Sir_Brizz's Avatar
 
Join Date: Feb. 3rd, 2000
Location: >:3
Posts: 25,488
knowing it is for UT99 would have been helpful
__________________
64 65 61 74 68 62 6f 6f 67 65 72 73 20 6d 6f 74 68 65 72 20 6f 66 20 63 6f 75 72 73 65

Liandri Archives - A veritable smorgasbord of information about the Unreal series
If Titanic taught me anything, it's to never let go until you're a frozen corpse staring hopelessly into a barren horizon.
Sir_Brizz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer