GSC Spawn function crashes game.

Gavin Rolls

Veteran
Messages
1
Reaction score
0
Points
551
I have tried multiple times to spawn a models, collision, and triggers on a map through a gsc script. However, the game crashes once the awaiting challenge portion of loading finishes. I have precached everything and made sure that the syntax is correct.

Code:
    cherry = spawn("script_model", (754, -278.3, -60.43));
    cherry.angles = (0, -90, 0);
    cherry setModel("zombie_vending_revive_on");
    cherry.targetname = ("cherry_machine");
    
    playloopedfx(level._effect[ "poltergeist" ], cherry.origin);
    
    clip = spawn("script_model", (754, -278, -60));
    clip setModel("collision_clip_sphere_32");
    clip Hide();
 
Top