_=Gigant=_
Well-known member
- Joined
- Mar 21, 2017
- Messages
- 353
- Reaction score
- 16
Hello, as a newbie in cleo coding i want to learn how to use "create_custom_thread" etc.. so i have few questions for this
1. where and how to start this create_custom_thread can i use it for checkbox like
P.S got it working thanks in advance
1. where and how to start this create_custom_thread can i use it for checkbox like
Code:
0A92: create_custom_thread "babushka.cs" 1
:CheckBoxID1
if 0@ == 1
then
03A4: name_thread 'REPAIR1'
while true
wait 0
if
0AB0: 82 //R
then
00DF: actor $PLAYER_ACTOR driving
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0A30: repair_car 0@
END //2.should i put here 0A93: end_custom_thread or END first and under that 0A93: end_custom_thread ?
ret 0 //ret so i can repeat key press 82
3. if i use multiple [font=Monaco, Consolas, Courier, monospace]0A92: [/font][font=Monaco, Consolas, Courier, monospace]create_custom_thread can i define same labels like 2@ that i puted in the previvious [size=small][font=Monaco, Consolas, Courier, monospace][size=medium]0A92: create_custom_thread[/font][/size][/font][font=Monaco, Consolas, Courier, monospace][font=Monaco, Consolas, Courier, monospace][size=medium] and will that bring any effect on previous [size=small][font=Monaco, Consolas, Courier, monospace]0A92: create_custom_thread when function one the next custom_thread is activated and will that bring effect on dialog 2@ [/font][/font][/size][font=Monaco, Consolas, Courier, monospace]?[/font][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=medium]4. can i use [size=small][font=Monaco, Consolas, Courier, monospace]0A92: create_custom_thread for buttons and how ?[/font][/font][/size][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=medium][size=small][font=Monaco, Consolas, Courier, monospace]so buttons[/font][/font][/size][/size][/font][/size]
Code:
if 0B81: dialog 2@ pop_event_to 3@ control_id_to 4@
0A92: create_custom_thread "ccreate.cs" 2
if 0@ == 2 // so this is for thread i think please explain how and where to put this if with button
then
03A4: name_thread 'CreateCar1'
while true
wait 0
if 4@ == 1 //
then
Model.Load(411)
038B: load_requested_models
04C4: store_coords_to 27@ 28@ 29@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.0
26@ = Car.Create(411, 27@, 28@, 29@) //if i use these labels in next custom_thread will they effect on that function ?
036A: put_actor $PLAYER_ACTOR in_car 26@
end
end_custom_thread //is this correct placed ?
P.S got it working thanks in advance