Quote:
Originally Posted by Sgt.Schnitzel
Is it in the .map file?
|
Perhaps but I don't know where. Perhaps forlik knows, he is the
map file (swd) master
I use the following method to get a position and spawn something:
Quote:
Originally Posted by Method for Spawning something
1. I save the current postion of the player with console command
"PL_SavePos"
2. The file "_default.pos" is created in DtS folder
3. I open it with HexWorshop and export it as hex dump text file
4. I take the coordinates for x,y,z and put it into the base converter tool
from hex worksop
Now I have the coordinates.
5. I put the command for spawning items into the scriptfile in function
"OnLoaded"
The command is e.g.
Level.CreateWorldItem( "bike_bmw" , "vehicle" ,-2070.00 , -128.00
, -3500.00 , 0.0, 0.0, 0.0, 'id_veh' );
Arguments:
1. Name of the object
2. Name of the object's class
3-5 x,y and z coordinates
6-8 I dunno. Is always 0.0
9 ID of the created object for further use in script.
Note:
The function Level.CreateWorldItem() is normally used for spawning weapons,
ammo, equipment and back packs,
but it works well with vehicles. You can also spawn NPCs but these don't
move and if you shoot them, the game crashes.
The classes and object names are taken from the template class shadvs files
e.g.
actors.shadv
vehicles.shadvs etc.
They are identical to the console commands for spawning.
|