fiend-o-hell Posted July 6, 2009 Quick problem. Can anybody tell whats wrong with this: Spawn( "DoomImp" , 200.0 , 200.0 , 0.0 , 0 , 0 ) ; 0 Share this post Link to post
Graf Zahl Posted July 6, 2009 Not without having a context in which this is used. 0 Share this post Link to post
fiend-o-hell Posted July 6, 2009 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 ) ; } 0 Share this post Link to post
Remmirath Posted July 6, 2009 What about placing a map spot at the desired location in the map itself, and trying this? thing_spawn(mapspottid,T_IMP,0,0); 0 Share this post Link to post
fiend-o-hell Posted July 6, 2009 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. 0 Share this post Link to post
fiend-o-hell Posted July 7, 2009 Can anybody see what I'm doing wrong here? 0 Share this post Link to post
Jodwin Posted July 7, 2009 Are you sure that the point (200,200) isn't in void? 0 Share this post Link to post
fiend-o-hell Posted July 7, 2009 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. 0 Share this post Link to post
Isle Posted July 7, 2009 is the floor at 0? the z corodinate is absolute and not relative to the floor. 0 Share this post Link to post
fiend-o-hell Posted July 7, 2009 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. 0 Share this post Link to post
Enjay Posted July 8, 2009 Purely out of interest, why are you using spawn instead of spawnspot? 0 Share this post Link to post