Ik wou dus iets zoals de stinger drop mod maken maar dan met mijnen dus maakte ik deze code, hij werkt niet goed ingame wat is er mis mee of welke fouten zie je ?
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 04.08.2007
DEFINE OBJECTS 2
DEFINE OBJECT SANNY BUILDER 3.01
DEFINE OBJECT MINE // Object number -1
DEFINE MISSIONS 0
DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script
DEFINE UNKNOWN_EMPTY_SEGMENT 0
DEFINE UNKNOWN_THREADS_MEMORY 0
{$VERSION 3.1.0023}
//-------------MAIN---------------
thread 'MAIN'
01F0: set_max_wanted_level_to 6
042C: set_total_missions_to 1
030D: set_max_progress 1
set_wb_check_to 0
00C0: set_current_time_hours_to 8 minutes_to 0
04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84
Camera.SetAtPos(2488.56, -1666.84, 13.38)
$PLAYER_CHAR = Player.Create(#NULL, 2488.56, -1666.84, 13.38)
$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)
Camera.SetBehindPlayer
set_weather 0
wait 0
0180: set_on_mission_flag_to $ON_MISSION // Note: your missions have to use the variable defined here
Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)
Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)
Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)
Player.SetClothes($PLAYER_CHAR, "VEST", "VEST", Torso)
Player.Build($PLAYER_CHAR)
Player.CanMove($PLAYER_CHAR) = True
fade 1 0
select_interior 0
0629: change_integer_stat 181 to 4
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0
016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0
:MAIN_287
Model.Load(#MINE)
038B: load_requested_models
:MAIN_293
if
Model.Load(#MINE)
else_jump @MAIN_343
wait 0
jump @MAIN_293
:MAIN_343
if
Actor.Driving($PLAYER_ACTOR)
else_jump @MAIN_343
Actor.StorePos($PLAYER_ACTOR, $X, $Y2, $Z)
$Z += 0.1
wait 0
00E1: player 0 pressed_key 8
$MINE = Object.Create(#MINE, $X, $Y, $Z)
071F: set_object 1@($MINE,5i) health_to 1
Object.CollisionDetection($MINE) = True
Object.StorePos($MINE, $X2, $Y2, $Z2)
jump @MAIN_448
:MAIN_448
wait 0
84DA: not has_object $MINE collided
else_jump @MAIN_448
0948: create_explosion_at $X2 $Y2 $Z2 type 11 camera_shake 1.0
0948: create_explosion_at $X2 $Y2 $Z2 type 11 camera_shake 1.0
0948: create_explosion_at $X2 $Y2 $Z2 type 11 camera_shake 1.0
Object.Destroy($MINE)
0249: release_model #MINE
jump @MAIN_287
Ik wou dus iets zoals de stinger drop mod maken maar dan met mijnen dus maakte ik deze code, hij werkt niet goed ingame wat is er mis mee of welke fouten zie je ?
Tom