Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
fiend-o-hell

ACS Spawn () trouble....

Recommended Posts

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 ) ;
}

Share this post


Link to post

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

thing_spawn(mapspottid,T_IMP,0,0);

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×