Reaper Grimm
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > ACS Spawn () trouble....
 
Author
All times are GMT. The time now is 14:06. Post New Thread    Post A Reply
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


Quick problem. Can anybody tell whats wrong with this:

Spawn( "DoomImp" , 200.0 , 200.0 , 0.0 , 0 , 0 ) ;

Old Post 07-06-09 18:56 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7130
Registered: 01-03


Not without having a context in which this is used.

Old Post 07-06-09 19:02 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


I'm trying to spawn an Imp at a specific point on the map. For testing purposes, the script is type ENTER, and it just consist of above line of code, so all that should happen is spawn an imp at 200.0:200.0 when the player enters. Of course, this does not work for me.

script 101 ENTER
{
Spawn( "DoomImp" ,
200.0 ,
200.0 ,
0.0 , 0 , 0 ) ;
}

Old Post 07-06-09 19:11 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7130
Registered: 01-03


What about the z-coordinate?

Old Post 07-06-09 21:19 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Morpheus
Junior Member


Posts: 130
Registered: 01-08


What about placing a map spot at the desired location in the map itself, and trying this?

thing_spawn(mapspottid,T_IMP,0,0);

Old Post 07-06-09 21:22 #
Morpheus is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


The example I posted is just for testing. I want to do something more complex, and it cant be with things. Thanks for the suggestion though.

Old Post 07-06-09 21:50 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


yeah, z coord is in there.

Old Post 07-07-09 01:12 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


Can anybody see what I'm doing wrong here?

Old Post 07-07-09 06:01 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Jodwin
Forum Staple


Posts: 2740
Registered: 02-05


Are you sure that the point (200,200) isn't in void?

Old Post 07-07-09 06:11 #
Jodwin is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


Yes, I checked.

My best guess is that the coordinates are not in the correct format. They are supposed to be float fixed point numbers are they not? I'm uncertain as to what a map coordinate is: an integer or a fixed point. An any case, i tried converting between the two w/o any luck.

The examples that utilizes spawn() usually use GetActor[XYZ](), and those return a fixed point value. I used a HUD script to verify this.

Last edited by fiend-o-hell on 07-07-09 at 06:57

Old Post 07-07-09 06:42 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Isle
I LOVE YOU LINGUICA


Posts: 230
Registered: 03-02


is the floor at 0? the z corodinate is absolute and not relative to the floor.

Old Post 07-07-09 10:33 #
Isle is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
fiend-o-hell
Junior Member


Posts: 248
Registered: 01-06


Yeah that was it. I couldn't figure it out until I found that the floor was higher than 0. Thanks. Boy was that frustrating.

Old Post 07-07-09 18:29 #
fiend-o-hell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00


Purely out of interest, why are you using spawn instead of spawnspot?

Old Post 07-08-09 02:09 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:06. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > ACS Spawn () trouble....

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory